#CDCD5A#CDCD5A

#CDCD5A is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.6% C 0.137 H 109.1°. Best body text is #000000 at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#CDCD5A
RGBrgb(205, 205, 90)
HSLhsl(60, 53%, 58%)
HSVhsv(60, 56%, 80%)
CMYKcmyk(0%, 0%, 56.1%, 19.6%)
CIE-LABlab(80.39, -14.97, 56.08)
CIE-LCHlch(80.39, 58.04, 104.94°)
OKLaboklab(82.58% -0.0449 0.1298)
OKLCHoklch(82.58% 0.137 109.1)
XYZxyz(48.8550, 57.3812, 18.1730)
Luminance0.5738 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD5A #5A5ACD
analogous
#CD935A #CDCD5A #93CD5A
triadic
#CDCD5A #5ACDCD #CD5ACD
tetradic
#CDCD5A #5ACD93 #5A5ACD #CD5A93
square
#CDCD5A #5ACD93 #5A5ACD #CD5A93
split-complementary
#CDCD5A #5A93CD #935ACD
monochromatic
#848428 #B3B336 #CDCD5A #DBDB89 #E9E9B8

Accessibility & contrast

On white

1.68
#CDCD5A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.48
#CDCD5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD5A
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD5A#FFFFFF#000000##000000
##CDCD5A1.001.6812.4812.48
#FFFFFF1.681.0021.0021.00
#00000012.4821.001.001.00
##00000012.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC54E
Deuteranopia (green-blind)
#DDC960
Tritanopia (blue-blind)
#DAC1B4
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #cdcd5a;
/* rgb */ color: rgb(205, 205, 90);
/* oklch */ color: oklch(82.6% 0.137 109.1);
Tailwind
colors: {
  custom: {
    50: '#dfdc8d',
    500: '#cdcd5a',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd5a;
$custom-light: #dfdc8d;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd5a",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 90
  },
  "hsl": {
    "h": 60,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.8258,
    "c": 0.13737,
    "h": 109.1
  },
  "luminance": 0.5738
}

Semantic roles & 50–950 ramp

primary
#CDCD5A
secondary
#40408C
accent
#4BDD4B
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15150C
muted
#84847F

Preview Lab

Preview with #CDCD5A

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

Preview Lab → · Contrast checker → · Palette generator →

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