CSS Named Color Reference

Yellow Color Code

Yellow·#FFFF00

Yellow FamilyWarmMid toneHigh saturationoklch(96.8% 0.211 110)
HEX
#FFFF00Primary token
RGB
rgb(255, 255, 0)Screen values
HSL
hsl(60 100% 50%)Hue and lightness
CMYK
0, 0, 100, 0Print handoff
LAB
97, -22, 94Perceptual reference
OKLCH
oklch(96.8% 0.211 110)Modern perceptual

Yellow is a mid-tone, high-saturation CSS named color at #FFFF00. If you searched for yellow hex code, FFFF00, or yellow RGB, this page gives the exact color value, conversion formats, contrast checks, nearby colors, and links into the lookup and converter workflows.

Best text colorDark text
Body text contrast15.97:1
Best UseAttention markers, highlights, warm backgrounds, and caution-adjacent states

Tonal Scale

100#FFFFD1
300#FFFF8A
500#FFFF2E
600#FFFF00
800#B8B800

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

1.07:1Needs more separation

Dark text on this color

Large headings and selective UI.

15.97:1AAA-level contrast

This color on light surface

Links, borders, and icons on light UI.

1.02:1Needs more separation
Best text colorDark textContrast 15.97:1

Professional Reference

OKLCHoklch(96.8% 0.211 110)
Relative Luminance0.9278
Source TypeCSS Named Color
Classification
Yellow FamilyWarmMid toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Aliases
Material Yellow A200
Closest Matches
Material Yellow A400Material Lime A200Ant Design Yellow 5
Color Notes
  • Yellow is kept as an exact CSS named color for #FFFF00.
  • Queries for yellow color code, FFFF00, or yellow RGB usually need the value first, then contrast and implementation context.

Accessibility Matrix

White text on this color

White text placed on the current color.

1.07:1Needs more separation

Dark text on this color

Dark text or headings on the current color.

15.97:1AAA

This color on light surface

Use this color for links, strokes, or icons on light UI.

1.02:1Needs more separation

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

15.97:1AAA
Best text colorDark textContrast 15.97:1 · AAA

Where It Works

  • Use it for highlights, caution-adjacent labels, warm backgrounds, and attention markers.
  • Most yellows need dark text for readable interface copy.
  • Pair with charcoal, deep olive, warm neutrals, and controlled orange accents.

Reference Notes

Last Updated
2026-09-03
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Yellow is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product and interface reference work.

Hue Family

Bright ambers and yellows that carry warmth.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-yellow: #FFFF00;
  --color-yellow-rgb: 255 255 0;
}
Utility Class
class="bg-[#FFFF00] text-white"
class="hover:bg-[#B8B800] ring-1 ring-[#FFFF00]"
JSON Token
{
  "yellow": "#FFFF00",
  "yellowRgb": [255, 255, 0],
  "yellowHsl": [60, 100, 50]
}