#CDCA5C#CDCA5C

#CDCA5C is a light, vivid yellow. Relative luminance 0.560; OKLCH L 82.0% C 0.132 H 107.6°. Best body text is #000000 at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#CDCA5C
RGBrgb(205, 202, 92)
HSLhsl(58, 53%, 58%)
HSVhsv(58, 55%, 80%)
CMYKcmyk(0%, 1.5%, 55.1%, 19.6%)
CIE-LABlab(79.61, -13.31, 54.29)
CIE-LCHlch(79.61, 55.90, 103.77°)
OKLaboklab(81.96% -0.0399 0.1262)
OKLCHoklch(81.96% 0.132 107.6)
XYZxyz(48.2305, 55.9943, 18.3905)
Luminance0.5599 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA5C #5C5FCD
analogous
#CD915C #CDCA5C #97CD5C
triadic
#CDCA5C #5CCDCA #CA5CCD
tetradic
#CDCA5C #5CCD91 #5C5FCD #CD5C97
square
#CDCA5C #5CCD91 #5C5FCD #CD5C97
split-complementary
#CDCA5C #5C97CD #915CCD
monochromatic
#868329 #B4B137 #CDCA5C #DBD98B #EAE8BA

Accessibility & contrast

On white

1.72
#CDCA5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.20
#CDCA5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA5C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA5C#FFFFFF#000000##000000
##CDCA5C1.001.7212.2012.20
#FFFFFF1.721.0021.0021.00
#00000012.2021.001.001.00
##00000012.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C351
Deuteranopia (green-blind)
#DBC762
Tritanopia (blue-blind)
#DABEB2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdca5c;
/* rgb */ color: rgb(205, 202, 92);
/* oklch */ color: oklch(82.0% 0.132 107.6);
Tailwind
colors: {
  custom: {
    50: '#dfd98e',
    500: '#cdca5c',
    950: '#000000',
  },
}
SCSS
$custom: #cdca5c;
$custom-light: #dfd98e;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca5c",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 92
  },
  "hsl": {
    "h": 58.407,
    "s": 53.052,
    "l": 58.235
  },
  "oklch": {
    "l": 0.81962,
    "c": 0.13239,
    "h": 107.6
  },
  "luminance": 0.55993
}

Semantic roles & 50–950 ramp

primary
#CDCA5C
secondary
#40438D
accent
#4FDC4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDCA5C

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

Preview Lab → · Contrast checker → · Palette generator →

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