#CDCA5A#CDCA5A

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

Color values

HEX#CDCA5A
RGBrgb(205, 202, 90)
HSLhsl(58, 53%, 58%)
HSVhsv(58, 56%, 80%)
CMYKcmyk(0%, 1.5%, 56.1%, 19.6%)
CIE-LABlab(79.59, -13.46, 55.18)
CIE-LCHlch(79.59, 56.79, 103.71°)
OKLaboklab(81.94% -0.0406 0.1279)
OKLCHoklch(81.94% 0.134 107.6)
XYZxyz(48.1442, 55.9598, 17.9361)
Luminance0.5596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA5A #5A5DCD
analogous
#CD915A #CDCA5A #96CD5A
triadic
#CDCA5A #5ACDCA #CA5ACD
tetradic
#CDCA5A #5ACD91 #5A5DCD #CD5A96
square
#CDCA5A #5ACD91 #5A5DCD #CD5A96
split-complementary
#CDCA5A #5A96CD #915ACD
monochromatic
#848228 #B3B036 #CDCA5A #DBD989 #E9E8B8

Accessibility & contrast

On white

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

On black

12.19
#CDCA5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCA5A
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCA5A#FFFFFF#000000##000000
##CDCA5A1.001.7212.1912.19
#FFFFFF1.721.0021.0021.00
#00000012.1921.001.001.00
##00000012.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C34E
Deuteranopia (green-blind)
#DBC760
Tritanopia (blue-blind)
#DABEB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdca5a;
/* rgb */ color: rgb(205, 202, 90);
/* oklch */ color: oklch(81.9% 0.134 107.6);
Tailwind
colors: {
  custom: {
    50: '#dfd98c',
    500: '#cdca5a',
    950: '#000000',
  },
}
SCSS
$custom: #cdca5a;
$custom-light: #dfd98c;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca5a",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 90
  },
  "hsl": {
    "h": 58.435,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8194,
    "c": 0.13418,
    "h": 107.6
  },
  "luminance": 0.55958
}

Semantic roles & 50–950 ramp

primary
#CDCA5A
secondary
#40428C
accent
#4FDD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDCA5A

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

Preview Lab → · Contrast checker → · Palette generator →

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