#CDD042#CDD042

#CDD042 is a very light, vivid yellow. Relative luminance 0.585; OKLCH L 83.0% C 0.159 H 110.6°. Best body text is #000000 at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#CDD042
RGBrgb(205, 208, 66)
HSLhsl(61, 60%, 54%)
HSVhsv(61, 68%, 82%)
CMYKcmyk(1.4%, 0%, 68.3%, 18.4%)
CIE-LABlab(81.01, -17.99, 66.61)
CIE-LCHlch(81.01, 69.00, 105.11°)
OKLaboklab(83.01% -0.0559 0.1487)
OKLCHoklch(83.01% 0.159 110.6)
XYZxyz(48.7177, 58.4855, 13.8757)
Luminance0.5848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD042 #4542D0
analogous
#D08C42 #CDD042 #86D042
triadic
#CDD042 #42CDD0 #D042CD
tetradic
#CDD042 #42D08C #4542D0 #D04286
square
#CDD042 #42D08C #4542D0 #D04286
split-complementary
#CDD042 #4286D0 #8C42D0
monochromatic
#77791E #A8AA2A #CDD042 #DADC73 #E7E8A4

Accessibility & contrast

On white

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

On black

12.70
#CDD042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD042
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD042#FFFFFF#000000##000000
##CDD0421.001.6512.7012.70
#FFFFFF1.651.0021.0021.00
#00000012.7021.001.001.00
##00000012.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C72B
Deuteranopia (green-blind)
#E1CB4C
Tritanopia (blue-blind)
#DBC3B4
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #cdd042;
/* rgb */ color: rgb(205, 208, 66);
/* oklch */ color: oklch(83.0% 0.159 110.6);
Tailwind
colors: {
  custom: {
    50: '#e0de7f',
    500: '#cdd042',
    950: '#000000',
  },
}
SCSS
$custom: #cdd042;
$custom-light: #e0de7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd042",
  "rgb": {
    "r": 205,
    "g": 208,
    "b": 66
  },
  "hsl": {
    "h": 61.268,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.83009,
    "c": 0.15885,
    "h": 110.6
  },
  "luminance": 0.58484
}

Semantic roles & 50–950 ramp

primary
#CDD042
secondary
#363581
accent
#44E348
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD042

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

Preview Lab → · Contrast checker → · Palette generator →

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