#CDD040#CDD040

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

Color values

HEX#CDD040
RGBrgb(205, 208, 64)
HSLhsl(61, 61%, 53%)
HSVhsv(61, 69%, 82%)
CMYKcmyk(1.4%, 0%, 69.2%, 18.4%)
CIE-LABlab(81.00, -18.09, 67.33)
CIE-LCHlch(81.00, 69.72, 105.04°)
OKLaboklab(82.99% -0.0564 0.1499)
OKLCHoklch(82.99% 0.16 110.6)
XYZxyz(48.6597, 58.4624, 13.5706)
Luminance0.5846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD040 #4340D0
analogous
#D08B40 #CDD040 #85D040
triadic
#CDD040 #40CDD0 #D040CD
tetradic
#CDD040 #40D08B #4340D0 #D04085
square
#CDD040 #40D08B #4340D0 #D04085
split-complementary
#CDD040 #4085D0 #8B40D0
monochromatic
#76781E #A7A92A #CDD040 #DADC71 #E7E8A2

Accessibility & contrast

On white

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

On black

12.69
#CDD040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD040
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD040#FFFFFF#000000##000000
##CDD0401.001.6512.6912.69
#FFFFFF1.651.0021.0021.00
#00000012.6921.001.001.00
##00000012.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdd040;
/* rgb */ color: rgb(205, 208, 64);
/* oklch */ color: oklch(83.0% 0.160 110.6);
Tailwind
colors: {
  custom: {
    50: '#e0de7e',
    500: '#cdd040',
    950: '#000000',
  },
}
SCSS
$custom: #cdd040;
$custom-light: #e0de7e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd040",
  "rgb": {
    "r": 205,
    "g": 208,
    "b": 64
  },
  "hsl": {
    "h": 61.25,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.82995,
    "c": 0.16013,
    "h": 110.6
  },
  "luminance": 0.58461
}

Semantic roles & 50–950 ramp

primary
#CDD040
secondary
#363480
accent
#44E447
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #CDD040

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

Preview Lab → · Contrast checker → · Palette generator →

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