#CDC07D#CDC07D

#CDC07D is a light, moderate yellow. Relative luminance 0.522; OKLCH L 80.3% C 0.088 H 98.6°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CDC07D
RGBrgb(205, 192, 125)
HSLhsl(50, 44%, 65%)
HSVhsv(50, 39%, 80%)
CMYKcmyk(0%, 6.3%, 39%, 19.6%)
CIE-LABlab(77.38, -5.06, 35.42)
CIE-LCHlch(77.38, 35.78, 98.14°)
OKLaboklab(80.32% -0.0131 0.0869)
OKLCHoklch(80.32% 0.088 98.6)
XYZxyz(47.7290, 52.1605, 26.9518)
Luminance0.5216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC07D #7D8ACD
analogous
#CD987D #CDC07D #B2CD7D
triadic
#CDC07D #7DCDC0 #C07DCD
tetradic
#CDC07D #7DCD98 #7D8ACD #CD7DB2
square
#CDC07D #7DCD98 #7D8ACD #CD7DB2
split-complementary
#CDC07D #7DB2CD #987DCD
monochromatic
#96873A #BCAB51 #CDC07D #DED5A9 #EFEBD5

Accessibility & contrast

On white

1.84
#CDC07D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CDC07D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC07D
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC07D#FFFFFF#000000##000000
##CDC07D1.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#CCBC78
Deuteranopia (green-blind)
#D0C180
Tritanopia (blue-blind)
#D8B7AF
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc07d;
/* rgb */ color: rgb(205, 192, 125);
/* oklch */ color: oklch(80.3% 0.088 98.6);
Tailwind
colors: {
  custom: {
    50: '#ddd2a3',
    500: '#cdc07d',
    950: '#000000',
  },
}
SCSS
$custom: #cdc07d;
$custom-light: #ddd2a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc07d",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 125
  },
  "hsl": {
    "h": 50.25,
    "s": 44.444,
    "l": 64.706
  },
  "oklch": {
    "l": 0.80323,
    "c": 0.08789,
    "h": 98.6
  },
  "luminance": 0.52159
}

Semantic roles & 50–950 ramp

primary
#CDC07D
secondary
#525E9C
accent
#44B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC07D

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

Preview Lab → · Contrast checker → · Palette generator →

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