#CDC07C#CDC07C

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

Color values

HEX#CDC07C
RGBrgb(205, 192, 124)
HSLhsl(50, 45%, 65%)
HSVhsv(50, 40%, 80%)
CMYKcmyk(0%, 6.3%, 39.5%, 19.6%)
CIE-LABlab(77.36, -5.18, 35.91)
CIE-LCHlch(77.36, 36.29, 98.20°)
OKLaboklab(80.31% -0.0135 0.088)
OKLCHoklch(80.31% 0.089 98.7)
XYZxyz(47.6655, 52.1351, 26.6171)
Luminance0.5213 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC07C #7C89CD
analogous
#CD987C #CDC07C #B2CD7C
triadic
#CDC07C #7CCDC0 #C07CCD
tetradic
#CDC07C #7CCD98 #7C89CD #CD7CB2
square
#CDC07C #7CCD98 #7C89CD #CD7CB2
split-complementary
#CDC07C #7CB2CD #987CCD
monochromatic
#968739 #BCAB50 #CDC07C #DED5A8 #EFEBD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC07C#FFFFFF#000000##000000
##CDC07C1.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)
#CCBC77
Deuteranopia (green-blind)
#D0C17F
Tritanopia (blue-blind)
#D8B7AF
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cdc07c;
/* rgb */ color: rgb(205, 192, 124);
/* oklch */ color: oklch(80.3% 0.089 98.7);
Tailwind
colors: {
  custom: {
    50: '#ddd2a3',
    500: '#cdc07c',
    950: '#000000',
  },
}
SCSS
$custom: #cdc07c;
$custom-light: #ddd2a3;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc07c",
  "rgb": {
    "r": 205,
    "g": 192,
    "b": 124
  },
  "hsl": {
    "h": 50.37,
    "s": 44.751,
    "l": 64.51
  },
  "oklch": {
    "l": 0.80306,
    "c": 0.08903,
    "h": 98.7
  },
  "luminance": 0.52134
}

Semantic roles & 50–950 ramp

primary
#CDC07C
secondary
#515D9C
accent
#44B82E
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380

Preview Lab

Preview with #CDC07C

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

Preview Lab → · Contrast checker → · Palette generator →

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