#CDC862#CDC862

#CDC862 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.125 H 106.3°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#CDC862
RGBrgb(205, 200, 98)
HSLhsl(57, 52%, 59%)
HSVhsv(57, 52%, 80%)
CMYKcmyk(0%, 2.4%, 52.2%, 19.6%)
CIE-LABlab(79.14, -11.81, 50.97)
CIE-LCHlch(79.14, 52.32, 103.05°)
OKLaboklab(81.61% -0.035 0.1197)
OKLCHoklch(81.61% 0.125 106.3)
XYZxyz(48.0370, 55.1709, 19.6715)
Luminance0.5517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC862 #6267CD
analogous
#CD9362 #CDC862 #9DCD62
triadic
#CDC862 #62CDC8 #C862CD
tetradic
#CDC862 #62CD93 #6267CD #CD629D
square
#CDC862 #62CD93 #6267CD #CD629D
split-complementary
#CDC862 #629DCD #9362CD
monochromatic
#89852C #B7B23A #CDC862 #DCD890 #EBE9BF

Accessibility & contrast

On white

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

On black

12.03
#CDC862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC862
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC862#FFFFFF#000000##000000
##CDC8621.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#D9C667
Tritanopia (blue-blind)
#DABDB1
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cdc862;
/* rgb */ color: rgb(205, 200, 98);
/* oklch */ color: oklch(81.6% 0.125 106.3);
Tailwind
colors: {
  custom: {
    50: '#ded891',
    500: '#cdc862',
    950: '#000000',
  },
}
SCSS
$custom: #cdc862;
$custom-light: #ded891;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc862",
  "rgb": {
    "r": 205,
    "g": 200,
    "b": 98
  },
  "hsl": {
    "h": 57.196,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81608,
    "c": 0.12472,
    "h": 106.3
  },
  "luminance": 0.5517
}

Semantic roles & 50–950 ramp

primary
#CDC862
secondary
#434790
accent
#53DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC862

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

Preview Lab → · Contrast checker → · Palette generator →

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