#CDCD5F#CDCD5F

#CDCD5F is a very light, vivid yellow. Relative luminance 0.575; OKLCH L 82.6% C 0.133 H 109.0°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#CDCD5F
RGBrgb(205, 205, 95)
HSLhsl(60, 52%, 59%)
HSVhsv(60, 54%, 80%)
CMYKcmyk(0%, 0%, 53.7%, 19.6%)
CIE-LABlab(80.44, -14.58, 53.87)
CIE-LCHlch(80.44, 55.81, 105.14°)
OKLaboklab(82.64% -0.0432 0.1257)
OKLCHoklch(82.64% 0.133 109)
XYZxyz(49.0750, 57.4692, 19.3318)
Luminance0.5747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDCD5F #5F5FCD
analogous
#CD965F #CDCD5F #96CD5F
triadic
#CDCD5F #5FCDCD #CD5FCD
tetradic
#CDCD5F #5FCD96 #5F5FCD #CD5F96
square
#CDCD5F #5FCD96 #5F5FCD #CD5F96
split-complementary
#CDCD5F #5F96CD #965FCD
monochromatic
#87872A #B6B639 #CDCD5F #DCDC8E #EAEABC

Accessibility & contrast

On white

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

On black

12.49
#CDCD5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDCD5F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDCD5F#FFFFFF#000000##000000
##CDCD5F1.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DCC554
Deuteranopia (green-blind)
#DDC965
Tritanopia (blue-blind)
#DAC2B5
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #cdcd5f;
/* rgb */ color: rgb(205, 205, 95);
/* oklch */ color: oklch(82.6% 0.133 109.0);
Tailwind
colors: {
  custom: {
    50: '#dedc90',
    500: '#cdcd5f',
    950: '#000000',
  },
}
SCSS
$custom: #cdcd5f;
$custom-light: #dedc90;
$custom-dark: #000000;
JSON
{
  "hex": "#cdcd5f",
  "rgb": {
    "r": 205,
    "g": 205,
    "b": 95
  },
  "hsl": {
    "h": 60,
    "s": 52.381,
    "l": 58.824
  },
  "oklch": {
    "l": 0.82635,
    "c": 0.13289,
    "h": 109
  },
  "luminance": 0.57468
}

Semantic roles & 50–950 ramp

primary
#CDCD5F
secondary
#42428E
accent
#4CDC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15150D
muted
#84847F

Preview Lab

Preview with #CDCD5F

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

Preview Lab → · Contrast checker → · Palette generator →

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