#FFD904#FFD904

#FFD904 is a very light, vivid yellow. Relative luminance 0.709; OKLCH L 89.1% C 0.183 H 96.1°. Best body text is #000000 at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#FFD904
RGBrgb(255, 217, 4)
HSLhsl(51, 100%, 51%)
HSVhsv(51, 98%, 100%)
CMYKcmyk(0%, 14.9%, 98.4%, 0%)
CIE-LABlab(87.44, -2.90, 87.15)
CIE-LCHlch(87.44, 87.20, 91.91°)
OKLaboklab(89.08% -0.0196 0.1818)
OKLCHoklch(89.08% 0.183 96.1)
XYZxyz(66.0787, 70.8984, 10.3192)
Luminance0.7089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFD904 #042AFF
analogous
#FF5B04 #FFD904 #A8FF04
triadic
#FFD904 #04FFD9 #D904FF
tetradic
#FFD904 #04FF5B #042AFF #FF04A8
square
#FFD904 #04FF5B #042AFF #FF04A8
split-complementary
#FFD904 #04A8FF #5B04FF
monochromatic
#897400 #C6A800 #FFD904 #FFE241 #FFEC7E

Accessibility & contrast

On white

1.38
#FFD904 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.18
#FFD904 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFD904
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFD904#FFFFFF#000000##000000
##FFD9041.001.3815.1815.18
#FFFFFF1.381.0021.0021.00
#00000015.1821.001.001.00
##00000015.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D400
Deuteranopia (green-blind)
#FBE026
Tritanopia (blue-blind)
#FFC6B9
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #ffd904;
/* rgb */ color: rgb(255, 217, 4);
/* oklch */ color: oklch(89.1% 0.183 96.1);
Tailwind
colors: {
  custom: {
    50: '#ffe46d',
    500: '#ffd904',
    950: '#000000',
  },
}
SCSS
$custom: #ffd904;
$custom-light: #ffe46d;
$custom-dark: #000000;
JSON
{
  "hex": "#ffd904",
  "rgb": {
    "r": 255,
    "g": 217,
    "b": 4
  },
  "hsl": {
    "h": 50.916,
    "s": 100,
    "l": 50.784
  },
  "oklch": {
    "l": 0.89078,
    "c": 0.18286,
    "h": 96.1
  },
  "luminance": 0.70894
}

Semantic roles & 50–950 ramp

primary
#FFD904
secondary
#192B8E
accent
#49FF29
background
#FFFEFB
surface
#FFFCF1
border
#D7D5CB
text
#191509
muted
#87847D

Preview Lab

Preview with #FFD904

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#FFD904 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva