#CDD942#CDD942

#CDD942 is a very light, vivid yellow. Relative luminance 0.630; OKLCH L 85.0% C 0.168 H 113.9°. Best body text is #000000 at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#CDD942
RGBrgb(205, 217, 66)
HSLhsl(65, 67%, 55%)
HSVhsv(65, 70%, 85%)
CMYKcmyk(5.5%, 0%, 69.6%, 14.9%)
CIE-LABlab(83.44, -22.40, 69.02)
CIE-LCHlch(83.44, 72.56, 107.98°)
OKLaboklab(84.96% -0.0682 0.1538)
OKLCHoklch(84.96% 0.168 113.9)
XYZxyz(50.9745, 62.9992, 14.6280)
Luminance0.6300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD942 #4E42D9
analogous
#D99942 #CDD942 #81D942
triadic
#CDD942 #42CDD9 #D942CD
tetradic
#CDD942 #42D999 #4E42D9 #D94281
square
#CDD942 #42D999 #4E42D9 #D94281
split-complementary
#CDD942 #4281D9 #9942D9
monochromatic
#7D861B #ADB925 #CDD942 #DAE375 #E8EDA8

Accessibility & contrast

On white

1.54
#CDD942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.60
#CDD942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD942
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD942#FFFFFF#000000##000000
##CDD9421.001.5413.6013.60
#FFFFFF1.541.0021.0021.00
#00000013.6021.001.001.00
##00000013.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9CF28
Deuteranopia (green-blind)
#E8D14E
Tritanopia (blue-blind)
#DACCBB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #cdd942;
/* rgb */ color: rgb(205, 217, 66);
/* oklch */ color: oklch(85.0% 0.168 113.9);
Tailwind
colors: {
  custom: {
    50: '#e0e480',
    500: '#cdd942',
    950: '#000000',
  },
}
SCSS
$custom: #cdd942;
$custom-light: #e0e480;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd942",
  "rgb": {
    "r": 205,
    "g": 217,
    "b": 66
  },
  "hsl": {
    "h": 64.768,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.84957,
    "c": 0.16821,
    "h": 113.9
  },
  "luminance": 0.62998
}

Semantic roles & 50–950 ramp

primary
#CDD942
secondary
#3A338C
accent
#3EE94C
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD942

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

Preview Lab → · Contrast checker → · Palette generator →

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