#CDC852#CDC852

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

Color values

HEX#CDC852
RGBrgb(205, 200, 82)
HSLhsl(58, 55%, 56%)
HSVhsv(58, 60%, 80%)
CMYKcmyk(0%, 2.4%, 60%, 19.6%)
CIE-LABlab(78.98, -13.03, 58.04)
CIE-LCHlch(78.98, 59.49, 102.65°)
OKLaboklab(81.43% -0.0402 0.133)
OKLCHoklch(81.43% 0.139 106.8)
XYZxyz(47.3556, 54.8984, 16.0829)
Luminance0.5490 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC852 #5257CD
analogous
#CD8B52 #CDC852 #95CD52
triadic
#CDC852 #52CDC8 #C852CD
tetradic
#CDC852 #52CD8B #5257CD #CD5295
square
#CDC852 #52CD8B #5257CD #CD5295
split-complementary
#CDC852 #5295CD #8B52CD
monochromatic
#807C25 #AFAA33 #CDC852 #DBD781 #E8E6B1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CDC852#FFFFFF#000000##000000
##CDC8521.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)
#D8C144
Deuteranopia (green-blind)
#DAC659
Tritanopia (blue-blind)
#DBBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc852;
/* rgb */ color: rgb(205, 200, 82);
/* oklch */ color: oklch(81.4% 0.139 106.8);
Tailwind
colors: {
  custom: {
    50: '#dfd887',
    500: '#cdc852',
    950: '#000000',
  },
}
SCSS
$custom: #cdc852;
$custom-light: #dfd887;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc852",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 57.561,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81432,
    "c": 0.13895,
    "h": 106.8
  },
  "luminance": 0.54897
}

Semantic roles & 50–950 ramp

primary
#CDC852
secondary
#3C3F87
accent
#4FDE49
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CDC852

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

Preview Lab → · Contrast checker → · Palette generator →

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