#FFD042#FFD042

#FFD042 is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 87.5% C 0.159 H 89.7°. Best body text is #000000 at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#FFD042
RGBrgb(255, 208, 66)
HSLhsl(45, 100%, 63%)
HSVhsv(45, 74%, 100%)
CMYKcmyk(0%, 18.4%, 74.1%, 0%)
CIE-LABlab(85.39, 3.01, 72.37)
CIE-LCHlch(85.39, 72.43, 87.62°)
OKLaboklab(87.52% 0.0009 0.1591)
OKLCHoklch(87.52% 0.159 89.7)
XYZxyz(64.7830, 66.7692, 14.6288)
Luminance0.6676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFD042 #4271FF
analogous
#FF7142 #FFD042 #D0FF42
triadic
#FFD042 #42FFD0 #D042FF
tetradic
#FFD042 #42FF71 #4271FF #FF42D0
square
#FFD042 #42FF71 #4271FF #FF42D0
split-complementary
#FFD042 #42D0FF #7142FF
monochromatic
#C79500 #FFC105 #FFD042 #FFDF7F #FFEEBC

Accessibility & contrast

On white

1.46
#FFD042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.35
#FFD042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFD042
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFD042#FFFFFF#000000##000000
##FFD0421.001.4614.3514.35
#FFFFFF1.461.0021.0021.00
#00000014.3521.001.001.00
##00000014.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E8CE2A
Deuteranopia (green-blind)
#F3DB4A
Tritanopia (blue-blind)
#FFBEB4
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #ffd042;
/* rgb */ color: rgb(255, 208, 66);
/* oklch */ color: oklch(87.5% 0.159 89.7);
Tailwind
colors: {
  custom: {
    50: '#ffde80',
    500: '#ffd042',
    950: '#000000',
  },
}
SCSS
$custom: #ffd042;
$custom-light: #ffde80;
$custom-dark: #000000;
JSON
{
  "hex": "#ffd042",
  "rgb": {
    "r": 255,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 45.079,
    "s": 100,
    "l": 62.941
  },
  "oklch": {
    "l": 0.87521,
    "c": 0.15908,
    "h": 89.7
  },
  "luminance": 0.66765
}

Semantic roles & 50–950 ramp

primary
#FFD042
secondary
#224AC3
accent
#39E600
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#19150B
muted
#87847E

Preview Lab

Preview with #FFD042

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

Preview Lab → · Contrast checker → · Palette generator →

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