#CDD242#CDD242

#CDD242 is a very light, vivid yellow. Relative luminance 0.595; OKLCH L 83.4% C 0.161 H 111.4°. Best body text is #000000 at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#CDD242
RGBrgb(205, 210, 66)
HSLhsl(62, 62%, 54%)
HSVhsv(62, 69%, 82%)
CMYKcmyk(2.4%, 0%, 68.6%, 17.6%)
CIE-LABlab(81.55, -18.98, 67.15)
CIE-LCHlch(81.55, 69.78, 105.78°)
OKLaboklab(83.44% -0.0586 0.1498)
OKLCHoklch(83.44% 0.161 111.4)
XYZxyz(49.2084, 59.4669, 14.0393)
Luminance0.5947 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD242 #4742D2
analogous
#D28F42 #CDD242 #85D242
triadic
#CDD242 #42CDD2 #D242CD
tetradic
#CDD242 #42D28F #4742D2 #D24285
square
#CDD242 #42D28F #4742D2 #D24285
split-complementary
#CDD242 #4285D2 #8F42D2
monochromatic
#797C1E #A9AD29 #CDD242 #DADE73 #E7EAA5

Accessibility & contrast

On white

1.63
#CDD242 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.89
#CDD242 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD242
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD242#FFFFFF#000000##000000
##CDD2421.001.6312.8912.89
#FFFFFF1.631.0021.0021.00
#00000012.8921.001.001.00
##00000012.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2C92B
Deuteranopia (green-blind)
#E3CC4D
Tritanopia (blue-blind)
#DBC5B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cdd242;
/* rgb */ color: rgb(205, 210, 66);
/* oklch */ color: oklch(83.4% 0.161 111.4);
Tailwind
colors: {
  custom: {
    50: '#e0df7f',
    500: '#cdd242',
    950: '#000000',
  },
}
SCSS
$custom: #cdd242;
$custom-light: #e0df7f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd242",
  "rgb": {
    "r": 205,
    "g": 210,
    "b": 66
  },
  "hsl": {
    "h": 62.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.8344,
    "c": 0.16089,
    "h": 111.4
  },
  "luminance": 0.59466
}

Semantic roles & 50–950 ramp

primary
#CDD242
secondary
#373484
accent
#43E549
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD242

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

Preview Lab → · Contrast checker → · Palette generator →

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