#CDD540#CDD540

#CDD540 is a very light, vivid yellow. Relative luminance 0.609; OKLCH L 84.1% C 0.165 H 112.5°. Best body text is #000000 at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#CDD540
RGBrgb(205, 213, 64)
HSLhsl(63, 64%, 54%)
HSVhsv(63, 70%, 84%)
CMYKcmyk(3.8%, 0%, 70%, 16.5%)
CIE-LABlab(82.35, -20.55, 68.66)
CIE-LCHlch(82.35, 71.67, 106.66°)
OKLaboklab(84.08% -0.0632 0.1527)
OKLCHoklch(84.08% 0.165 112.5)
XYZxyz(49.8980, 60.9389, 13.9834)
Luminance0.6094 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD540 #4840D5
analogous
#D59240 #CDD540 #83D540
triadic
#CDD540 #40CDD5 #D540CD
tetradic
#CDD540 #40D592 #4840D5 #D54083
square
#CDD540 #40D592 #4840D5 #D54083
split-complementary
#CDD540 #4083D5 #9240D5
monochromatic
#797F1C #A9B127 #CDD540 #DAE072 #E7EBA4

Accessibility & contrast

On white

1.59
#CDD540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.19
#CDD540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD540
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD540#FFFFFF#000000##000000
##CDD5401.001.5913.1913.19
#FFFFFF1.591.0021.0021.00
#00000013.1921.001.001.00
##00000013.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5CB26
Deuteranopia (green-blind)
#E5CF4B
Tritanopia (blue-blind)
#DBC8B8
Achromatopsia (no color)
#CDCDCD

Design tokens & code

CSS
--color: #cdd540;
/* rgb */ color: rgb(205, 213, 64);
/* oklch */ color: oklch(84.1% 0.165 112.5);
Tailwind
colors: {
  custom: {
    50: '#e0e17e',
    500: '#cdd540',
    950: '#000000',
  },
}
SCSS
$custom: #cdd540;
$custom-light: #e0e17e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd540",
  "rgb": {
    "r": 205,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 63.221,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.84075,
    "c": 0.16525,
    "h": 112.5
  },
  "luminance": 0.60938
}

Semantic roles & 50–950 ramp

primary
#CDD540
secondary
#383386
accent
#41E74A
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD540

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

Preview Lab → · Contrast checker → · Palette generator →

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