#CDC762#CDC762

#CDC762 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.124 H 105.8°. Best body text is #000000 at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#CDC762
RGBrgb(205, 199, 98)
HSLhsl(57, 52%, 59%)
HSVhsv(57, 52%, 80%)
CMYKcmyk(0%, 2.9%, 52.2%, 19.6%)
CIE-LABlab(78.87, -11.30, 50.66)
CIE-LCHlch(78.87, 51.90, 102.58°)
OKLaboklab(81.4% -0.0336 0.119)
OKLCHoklch(81.4% 0.124 105.8)
XYZxyz(47.8062, 54.7092, 19.5946)
Luminance0.5471 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC762 #6268CD
analogous
#CD9262 #CDC762 #9DCD62
triadic
#CDC762 #62CDC7 #C762CD
tetradic
#CDC762 #62CD92 #6268CD #CD629D
square
#CDC762 #62CD92 #6268CD #CD629D
split-complementary
#CDC762 #629DCD #9262CD
monochromatic
#89842C #B7B03A #CDC762 #DCD890 #EBE8BF

Accessibility & contrast

On white

1.76
#CDC762 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.94
#CDC762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC762
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC762#FFFFFF#000000##000000
##CDC7621.001.7611.9411.94
#FFFFFF1.761.0021.0021.00
#00000011.9421.001.001.00
##00000011.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#D8C567
Tritanopia (blue-blind)
#DABCB0
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cdc762;
/* rgb */ color: rgb(205, 199, 98);
/* oklch */ color: oklch(81.4% 0.124 105.8);
Tailwind
colors: {
  custom: {
    50: '#ded791',
    500: '#cdc762',
    950: '#000000',
  },
}
SCSS
$custom: #cdc762;
$custom-light: #ded791;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc762",
  "rgb": {
    "r": 205,
    "g": 199,
    "b": 98
  },
  "hsl": {
    "h": 56.636,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.81396,
    "c": 0.12367,
    "h": 105.8
  },
  "luminance": 0.54708
}

Semantic roles & 50–950 ramp

primary
#CDC762
secondary
#434890
accent
#55DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC762

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

Preview Lab → · Contrast checker → · Palette generator →

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