#CDC562#CDC562

#CDC562 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.122 H 104.6°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#CDC562
RGBrgb(205, 197, 98)
HSLhsl(56, 52%, 59%)
HSVhsv(56, 52%, 80%)
CMYKcmyk(0%, 3.9%, 52.2%, 19.6%)
CIE-LABlab(78.34, -10.28, 50.04)
CIE-LCHlch(78.34, 51.08, 101.61°)
OKLaboklab(80.97% -0.0306 0.1177)
OKLCHoklch(80.97% 0.122 104.6)
XYZxyz(47.3490, 53.7950, 19.4422)
Luminance0.5379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CDC562 #626ACD
analogous
#CD9062 #CDC562 #A0CD62
triadic
#CDC562 #62CDC5 #C562CD
tetradic
#CDC562 #62CD90 #626ACD #CD62A0
square
#CDC562 #62CD90 #626ACD #CD62A0
split-complementary
#CDC562 #62A0CD #9062CD
monochromatic
#89822C #B7AE3A #CDC562 #DCD690 #EBE7BF

Accessibility & contrast

On white

1.79
#CDC562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#CDC562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CDC562
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CDC562#FFFFFF#000000##000000
##CDC5621.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF59
Deuteranopia (green-blind)
#D7C467
Tritanopia (blue-blind)
#DABAAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cdc562;
/* rgb */ color: rgb(205, 197, 98);
/* oklch */ color: oklch(81.0% 0.122 104.6);
Tailwind
colors: {
  custom: {
    50: '#ded691',
    500: '#cdc562',
    950: '#000000',
  },
}
SCSS
$custom: #cdc562;
$custom-light: #ded691;
$custom-dark: #000000;
JSON
{
  "hex": "#cdc562",
  "rgb": {
    "r": 205,
    "g": 197,
    "b": 98
  },
  "hsl": {
    "h": 55.514,
    "s": 51.691,
    "l": 59.412
  },
  "oklch": {
    "l": 0.80973,
    "c": 0.12161,
    "h": 104.6
  },
  "luminance": 0.53793
}

Semantic roles & 50–950 ramp

primary
#CDC562
secondary
#434990
accent
#57DB4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CDC562

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

Preview Lab → · Contrast checker → · Palette generator →

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