#CDC851#CDC851

#CDC851 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.140 H 106.9°. Best body text is #000000 at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#CDC851
RGBrgb(205, 200, 81)
HSLhsl(58, 55%, 56%)
HSVhsv(58, 60%, 80%)
CMYKcmyk(0%, 2.4%, 60.5%, 19.6%)
CIE-LABlab(78.97, -13.09, 58.46)
CIE-LCHlch(78.97, 59.91, 102.62°)
OKLaboklab(81.42% -0.0405 0.1338)
OKLCHoklch(81.42% 0.14 106.9)
XYZxyz(47.3179, 54.8833, 15.8840)
Luminance0.5488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC851 #5156CD
analogous
#CD8A51 #CDC851 #94CD51
triadic
#CDC851 #51CDC8 #C851CD
tetradic
#CDC851 #51CD8A #5156CD #CD5194
square
#CDC851 #51CD8A #5156CD #CD5194
split-complementary
#CDC851 #5194CD #8A51CD
monochromatic
#7F7B25 #AFAA32 #CDC851 #DBD781 #E8E6B0

Accessibility & contrast

On white

1.75
#CDC851 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.98
#CDC851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC851
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC851#FFFFFF#000000##000000
##CDC8511.001.7511.9811.98
#FFFFFF1.751.0021.0021.00
#00000011.9821.001.001.00
##00000011.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DAC658
Tritanopia (blue-blind)
#DBBCAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc851;
/* rgb */ color: rgb(205, 200, 81);
/* oklch */ color: oklch(81.4% 0.140 106.9);
Tailwind
colors: {
  custom: {
    50: '#dfd887',
    500: '#cdc851',
    950: '#000000',
  },
}
SCSS
$custom: #cdc851;
$custom-light: #dfd887;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc851",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 57.581,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81422,
    "c": 0.13976,
    "h": 106.9
  },
  "luminance": 0.54882
}

Semantic roles & 50–950 ramp

primary
#CDC851
secondary
#3B3F87
accent
#4FDF49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC851

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

Preview Lab → · Contrast checker → · Palette generator →

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