#CDD940#CDD940

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

Color values

HEX#CDD940
RGBrgb(205, 217, 64)
HSLhsl(65, 67%, 55%)
HSVhsv(65, 71%, 85%)
CMYKcmyk(5.5%, 0%, 70.5%, 14.9%)
CIE-LABlab(83.43, -22.50, 69.72)
CIE-LCHlch(83.43, 73.26, 107.89°)
OKLaboklab(84.94% -0.0687 0.1549)
OKLCHoklch(84.94% 0.169 113.9)
XYZxyz(50.9166, 62.9760, 14.3229)
Luminance0.6298 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD940 #4C40D9
analogous
#D99940 #CDD940 #80D940
triadic
#CDD940 #40CDD9 #D940CD
tetradic
#CDD940 #40D999 #4C40D9 #D94080
square
#CDD940 #40D999 #4C40D9 #D94080
split-complementary
#CDD940 #4080D9 #9940D9
monochromatic
#7C841A #ACB724 #CDD940 #DAE373 #E8EDA6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDD940#FFFFFF#000000##000000
##CDD9401.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)
#E9CE25
Deuteranopia (green-blind)
#E8D14C
Tritanopia (blue-blind)
#DACCBB
Achromatopsia (no color)
#D0D0D0

Design tokens & code

CSS
--color: #cdd940;
/* rgb */ color: rgb(205, 217, 64);
/* oklch */ color: oklch(84.9% 0.169 113.9);
Tailwind
colors: {
  custom: {
    50: '#e0e47f',
    500: '#cdd940',
    950: '#000000',
  },
}
SCSS
$custom: #cdd940;
$custom-light: #e0e47f;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd940",
  "rgb": {
    "r": 205,
    "g": 217,
    "b": 64
  },
  "hsl": {
    "h": 64.706,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.84943,
    "c": 0.16943,
    "h": 113.9
  },
  "luminance": 0.62975
}

Semantic roles & 50–950 ramp

primary
#CDD940
secondary
#39328B
accent
#3EEA4C
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD940

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

Preview Lab → · Contrast checker → · Palette generator →

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