#CDCA5B#CDCA5B

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

Color values

HEX#CDCA5B
RGBrgb(205, 202, 91)
HSLhsl(58, 53%, 58%)
HSVhsv(58, 56%, 80%)
CMYKcmyk(0%, 1.5%, 55.6%, 19.6%)
CIE-LABlab(79.60, -13.38, 54.73)
CIE-LCHlch(79.60, 56.35, 103.74°)
OKLaboklab(81.95% -0.0403 0.1271)
OKLCHoklch(81.95% 0.133 107.6)
XYZxyz(48.1871, 55.9769, 18.1618)
Luminance0.5598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCA5B #5B5ECD
analogous
#CD915B #CDCA5B #97CD5B
triadic
#CDCA5B #5BCDCA #CA5BCD
tetradic
#CDCA5B #5BCD91 #5B5ECD #CD5B97
square
#CDCA5B #5BCD91 #5B5ECD #CD5B97
split-complementary
#CDCA5B #5B97CD #915BCD
monochromatic
#858329 #B4B137 #CDCA5B #DBD98A #EAE8B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDCA5B#FFFFFF#000000##000000
##CDCA5B1.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)
#D9C350
Deuteranopia (green-blind)
#DBC761
Tritanopia (blue-blind)
#DABEB2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdca5b;
/* rgb */ color: rgb(205, 202, 91);
/* oklch */ color: oklch(82.0% 0.133 107.6);
Tailwind
colors: {
  custom: {
    50: '#dfd98d',
    500: '#cdca5b',
    950: '#000000',
  },
}
SCSS
$custom: #cdca5b;
$custom-light: #dfd98d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdca5b",
  "rgb": {
    "r": 205,
    "g": 202,
    "b": 91
  },
  "hsl": {
    "h": 58.421,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.81951,
    "c": 0.1333,
    "h": 107.6
  },
  "luminance": 0.55976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CDCA5B

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

Preview Lab → · Contrast checker → · Palette generator →

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