#CDC962#CDC962

#CDC962 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.8% C 0.126 H 106.9°. Best body text is #000000 at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#CDC962
RGBrgb(205, 201, 98)
HSLhsl(58, 52%, 59%)
HSVhsv(58, 52%, 80%)
CMYKcmyk(0%, 2%, 52.2%, 19.6%)
CIE-LABlab(79.41, -12.32, 51.28)
CIE-LCHlch(79.41, 52.74, 103.51°)
OKLaboklab(81.82% -0.0365 0.1204)
OKLCHoklch(81.82% 0.126 106.9)
XYZxyz(48.2694, 55.6356, 19.7490)
Luminance0.5563 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC962 #6266CD
analogous
#CD9462 #CDC962 #9CCD62
triadic
#CDC962 #62CDC9 #C962CD
tetradic
#CDC962 #62CD94 #6266CD #CD629C
square
#CDC962 #62CD94 #6266CD #CD629C
split-complementary
#CDC962 #629CCD #9462CD
monochromatic
#89852C #B7B33A #CDC962 #DCD990 #EBE9BF

Accessibility & contrast

On white

1.73
#CDC962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.13
#CDC962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC962
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC962#FFFFFF#000000##000000
##CDC9621.001.7312.1312.13
#FFFFFF1.731.0021.0021.00
#00000012.1321.001.001.00
##00000012.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C258
Deuteranopia (green-blind)
#DAC767
Tritanopia (blue-blind)
#DABEB2
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cdc962;
/* rgb */ color: rgb(205, 201, 98);
/* oklch */ color: oklch(81.8% 0.126 106.9);
Tailwind
colors: {
  custom: {
    50: '#ded991',
    500: '#cdc962',
    950: '#000000',
  },
}
SCSS
$custom: #cdc962;
$custom-light: #ded991;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc962",
  "rgb": {
    "r": 205,
    "g": 201,
    "b": 98
  },
  "hsl": {
    "h": 57.757,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81819,
    "c": 0.12578,
    "h": 106.9
  },
  "luminance": 0.55634
}

Semantic roles & 50–950 ramp

primary
#CDC962
secondary
#434690
accent
#52DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC962

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

Preview Lab → · Contrast checker → · Palette generator →

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