#CFD042#CFD042

#CFD042 is a very light, vivid yellow. Relative luminance 0.588; OKLCH L 83.2% C 0.158 H 109.8°. Best body text is #000000 at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#CFD042
RGBrgb(207, 208, 66)
HSLhsl(60, 60%, 54%)
HSVhsv(60, 68%, 82%)
CMYKcmyk(0.5%, 0%, 68.3%, 18.4%)
CIE-LABlab(81.17, -17.16, 66.82)
CIE-LCHlch(81.17, 68.99, 104.40°)
OKLaboklab(83.17% -0.0537 0.1491)
OKLCHoklch(83.17% 0.158 109.8)
XYZxyz(49.2730, 58.7719, 13.9018)
Luminance0.5877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CFD042 #4342D0
analogous
#D08A42 #CFD042 #88D042
triadic
#CFD042 #42CFD0 #D042CF
tetradic
#CFD042 #42D08A #4342D0 #D04288
square
#CFD042 #42D08A #4342D0 #D04288
split-complementary
#CFD042 #4288D0 #8A42D0
monochromatic
#79791E #AAAA2A #CFD042 #DBDC73 #E8E8A4

Accessibility & contrast

On white

1.65
#CFD042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.75
#CFD042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CFD042
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CFD042#FFFFFF#000000##000000
##CFD0421.001.6512.7512.75
#FFFFFF1.651.0021.0021.00
#00000012.7521.001.001.00
##00000012.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C72B
Deuteranopia (green-blind)
#E2CC4C
Tritanopia (blue-blind)
#DDC3B4
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #cfd042;
/* rgb */ color: rgb(207, 208, 66);
/* oklch */ color: oklch(83.2% 0.158 109.8);
Tailwind
colors: {
  custom: {
    50: '#e1de7f',
    500: '#cfd042',
    950: '#000000',
  },
}
SCSS
$custom: #cfd042;
$custom-light: #e1de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cfd042",
  "rgb": {
    "r": 207,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 60.423,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.83174,
    "c": 0.15843,
    "h": 109.8
  },
  "luminance": 0.5877
}

Semantic roles & 50–950 ramp

primary
#CFD042
secondary
#353581
accent
#44E346
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CFD042

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

Preview Lab → · Contrast checker → · Palette generator →

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