#CDC951#CDC951

#CDC951 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.6% C 0.141 H 107.3°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CDC951
RGBrgb(205, 201, 81)
HSLhsl(58, 55%, 56%)
HSVhsv(58, 60%, 80%)
CMYKcmyk(0%, 2%, 60.5%, 19.6%)
CIE-LABlab(79.24, -13.60, 58.75)
CIE-LCHlch(79.24, 60.31, 103.03°)
OKLaboklab(81.64% -0.0419 0.1344)
OKLCHoklch(81.64% 0.141 107.3)
XYZxyz(47.5502, 55.3480, 15.9614)
Luminance0.5535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC951 #5155CD
analogous
#CD8B51 #CDC951 #93CD51
triadic
#CDC951 #51CDC9 #C951CD
tetradic
#CDC951 #51CD8B #5155CD #CD5193
square
#CDC951 #51CD8B #5155CD #CD5193
split-complementary
#CDC951 #5193CD #8B51CD
monochromatic
#7F7C25 #AFAB32 #CDC951 #DBD881 #E8E7B0

Accessibility & contrast

On white

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

On black

12.07
#CDC951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC951
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC951#FFFFFF#000000##000000
##CDC9511.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cdc951;
/* rgb */ color: rgb(205, 201, 81);
/* oklch */ color: oklch(81.6% 0.141 107.3);
Tailwind
colors: {
  custom: {
    50: '#dfd987',
    500: '#cdc951',
    950: '#000000',
  },
}
SCSS
$custom: #cdc951;
$custom-light: #dfd987;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc951",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 58.065,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81635,
    "c": 0.14078,
    "h": 107.3
  },
  "luminance": 0.55347
}

Semantic roles & 50–950 ramp

primary
#CDC951
secondary
#3B3E87
accent
#4EDF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC951

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

Preview Lab → · Contrast checker → · Palette generator →

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