#CDC957#CDC957

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

Color values

HEX#CDC957
RGBrgb(205, 201, 87)
HSLhsl(58, 54%, 57%)
HSVhsv(58, 58%, 80%)
CMYKcmyk(0%, 2%, 57.6%, 19.6%)
CIE-LABlab(79.30, -13.18, 56.19)
CIE-LCHlch(79.30, 57.71, 103.20°)
OKLaboklab(81.7% -0.0401 0.1297)
OKLCHoklch(81.7% 0.136 107.2)
XYZxyz(47.7852, 55.4420, 17.1992)
Luminance0.5544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC957 #575BCD
analogous
#CD8E57 #CDC957 #96CD57
triadic
#CDC957 #57CDC9 #C957CD
tetradic
#CDC957 #57CD8E #575BCD #CD5796
square
#CDC957 #57CD8E #575BCD #CD5796
split-complementary
#CDC957 #5796CD #8E57CD
monochromatic
#838027 #B2AE35 #CDC957 #DBD886 #E9E7B5

Accessibility & contrast

On white

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

On black

12.09
#CDC957 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC957
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC957#FFFFFF#000000##000000
##CDC9571.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C24B
Deuteranopia (green-blind)
#DBC75D
Tritanopia (blue-blind)
#DABDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc957;
/* rgb */ color: rgb(205, 201, 87);
/* oklch */ color: oklch(81.7% 0.136 107.2);
Tailwind
colors: {
  custom: {
    50: '#dfd98a',
    500: '#cdc957',
    950: '#000000',
  },
}
SCSS
$custom: #cdc957;
$custom-light: #dfd98a;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc957",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 87
  },
  "hsl": {
    "h": 57.966,
    "s": 54.128,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81696,
    "c": 0.13576,
    "h": 107.2
  },
  "luminance": 0.55441
}

Semantic roles & 50–950 ramp

primary
#CDC957
secondary
#3E418A
accent
#4FDD4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140C
muted
#84837F

Preview Lab

Preview with #CDC957

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

Preview Lab → · Contrast checker → · Palette generator →

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