#CDC956#CDC956

#CDC956 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.137 H 107.2°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#CDC956
RGBrgb(205, 201, 86)
HSLhsl(58, 54%, 57%)
HSVhsv(58, 58%, 80%)
CMYKcmyk(0%, 2%, 58%, 19.6%)
CIE-LABlab(79.29, -13.25, 56.62)
CIE-LCHlch(79.29, 58.15, 103.17°)
OKLaboklab(81.69% -0.0404 0.1305)
OKLCHoklch(81.69% 0.137 107.2)
XYZxyz(47.7447, 55.4257, 16.9855)
Luminance0.5542 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC956 #565ACD
analogous
#CD8E56 #CDC956 #96CD56
triadic
#CDC956 #56CDC9 #C956CD
tetradic
#CDC956 #56CD8E #565ACD #CD5696
square
#CDC956 #56CD8E #565ACD #CD5696
split-complementary
#CDC956 #5696CD #8E56CD
monochromatic
#827F26 #B1AD34 #CDC956 #DBD885 #E9E7B4

Accessibility & contrast

On white

1.74
#CDC956 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#CDC956 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC956
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC956#FFFFFF#000000##000000
##CDC9561.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C249
Deuteranopia (green-blind)
#DBC75C
Tritanopia (blue-blind)
#DBBDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc956;
/* rgb */ color: rgb(205, 201, 86);
/* oklch */ color: oklch(81.7% 0.137 107.2);
Tailwind
colors: {
  custom: {
    50: '#dfd98a',
    500: '#cdc956',
    950: '#000000',
  },
}
SCSS
$custom: #cdc956;
$custom-light: #dfd98a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc956",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 86
  },
  "hsl": {
    "h": 57.983,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.81685,
    "c": 0.13662,
    "h": 107.2
  },
  "luminance": 0.55424
}

Semantic roles & 50–950 ramp

primary
#CDC956
secondary
#3E4089
accent
#4FDE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC956

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

Preview Lab → · Contrast checker → · Palette generator →

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