#CCC562#CCC562

#CCC562 is a light, vivid yellow. Relative luminance 0.537; OKLCH L 80.9% C 0.122 H 105.1°. Best body text is #000000 at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#CCC562
RGBrgb(204, 197, 98)
HSLhsl(56, 51%, 59%)
HSVhsv(56, 52%, 80%)
CMYKcmyk(0%, 3.4%, 52%, 20%)
CIE-LABlab(78.26, -10.69, 49.92)
CIE-LCHlch(78.26, 51.05, 102.09°)
OKLaboklab(80.89% -0.0318 0.1174)
OKLCHoklch(80.89% 0.122 105.1)
XYZxyz(47.0740, 53.6531, 19.4293)
Luminance0.5365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC562 #6269CC
analogous
#CC9062 #CCC562 #9ECC62
triadic
#CCC562 #62CCC5 #C562CC
tetradic
#CCC562 #62CC90 #6269CC #CC629E
square
#CCC562 #62CC90 #6269CC #CC629E
split-complementary
#CCC562 #629ECC #9062CC
monochromatic
#88822C #B6AE3B #CCC562 #DBD690 #EAE7BE

Accessibility & contrast

On white

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

On black

11.73
#CCC562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC562
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC562#FFFFFF#000000##000000
##CCC5621.001.7911.7311.73
#FFFFFF1.791.0021.0021.00
#00000011.7321.001.001.00
##00000011.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BF59
Deuteranopia (green-blind)
#D6C467
Tritanopia (blue-blind)
#D9BAAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #ccc562;
/* rgb */ color: rgb(204, 197, 98);
/* oklch */ color: oklch(80.9% 0.122 105.1);
Tailwind
colors: {
  custom: {
    50: '#ded691',
    500: '#ccc562',
    950: '#000000',
  },
}
SCSS
$custom: #ccc562;
$custom-light: #ded691;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc562",
  "rgb": {
    "r": 204,
    "g": 197,
    "b": 98
  },
  "hsl": {
    "h": 56.038,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.80887,
    "c": 0.12166,
    "h": 105.1
  },
  "luminance": 0.53652
}

Semantic roles & 50–950 ramp

primary
#CCC562
secondary
#44498F
accent
#57DA4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCC562

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

Preview Lab → · Contrast checker → · Palette generator →

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