#CDD340#CDD340

#CDD340 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 83.6% C 0.163 H 111.8°. Best body text is #000000 at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#CDD340
RGBrgb(205, 211, 64)
HSLhsl(62, 63%, 54%)
HSVhsv(62, 70%, 83%)
CMYKcmyk(2.8%, 0%, 69.7%, 17.3%)
CIE-LABlab(81.81, -19.57, 68.13)
CIE-LCHlch(81.81, 70.88, 106.03°)
OKLaboklab(83.64% -0.0605 0.1516)
OKLCHoklch(83.64% 0.163 111.8)
XYZxyz(49.3981, 59.9390, 13.8167)
Luminance0.5994 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDD340 #4640D3
analogous
#D39040 #CDD340 #84D340
triadic
#CDD340 #40CDD3 #D340CD
tetradic
#CDD340 #40D390 #4640D3 #D34084
square
#CDD340 #40D390 #4640D3 #D34084
split-complementary
#CDD340 #4084D3 #9040D3
monochromatic
#787C1D #A8AE28 #CDD340 #DADE72 #E7EAA3

Accessibility & contrast

On white

1.62
#CDD340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.99
#CDD340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDD340
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDD340#FFFFFF#000000##000000
##CDD3401.001.6212.9912.99
#FFFFFF1.621.0021.0021.00
#00000012.9921.001.001.00
##00000012.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3C927
Deuteranopia (green-blind)
#E4CD4B
Tritanopia (blue-blind)
#DBC6B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #cdd340;
/* rgb */ color: rgb(205, 211, 64);
/* oklch */ color: oklch(83.6% 0.163 111.8);
Tailwind
colors: {
  custom: {
    50: '#e0e07e',
    500: '#cdd340',
    950: '#000000',
  },
}
SCSS
$custom: #cdd340;
$custom-light: #e0e07e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdd340",
  "rgb": {
    "r": 205,
    "g": 211,
    "b": 64
  },
  "hsl": {
    "h": 62.449,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.83642,
    "c": 0.16318,
    "h": 111.8
  },
  "luminance": 0.59938
}

Semantic roles & 50–950 ramp

primary
#CDD340
secondary
#373384
accent
#42E649
background
#FEFEFB
surface
#FCFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #CDD340

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

Preview Lab → · Contrast checker → · Palette generator →

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