#CCC962#CCC962

#CCC962 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.7% C 0.126 H 107.4°. Best body text is #000000 at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#CCC962
RGBrgb(204, 201, 98)
HSLhsl(58, 51%, 59%)
HSVhsv(58, 52%, 80%)
CMYKcmyk(0%, 1.5%, 52%, 20%)
CIE-LABlab(79.32, -12.73, 51.17)
CIE-LCHlch(79.32, 52.73, 103.97°)
OKLaboklab(81.74% -0.0376 0.1201)
OKLCHoklch(81.74% 0.126 107.4)
XYZxyz(47.9943, 55.4938, 19.7361)
Luminance0.5549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC962 #6265CC
analogous
#CC9462 #CCC962 #9ACC62
triadic
#CCC962 #62CCC9 #C962CC
tetradic
#CCC962 #62CC94 #6265CC #CC629A
square
#CCC962 #62CC94 #6265CC #CC629A
split-complementary
#CCC962 #629ACC #9462CC
monochromatic
#88852C #B6B23B #CCC962 #DBD990 #EAE9BE

Accessibility & contrast

On white

1.74
#CCC962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.10
#CCC962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC962
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC962#FFFFFF#000000##000000
##CCC9621.001.7412.1012.10
#FFFFFF1.741.0021.0021.00
#00000012.1021.001.001.00
##00000012.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ccc962;
/* rgb */ color: rgb(204, 201, 98);
/* oklch */ color: oklch(81.7% 0.126 107.4);
Tailwind
colors: {
  custom: {
    50: '#ded991',
    500: '#ccc962',
    950: '#000000',
  },
}
SCSS
$custom: #ccc962;
$custom-light: #ded991;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc962",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 98
  },
  "hsl": {
    "h": 58.302,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81735,
    "c": 0.12588,
    "h": 107.4
  },
  "luminance": 0.55492
}

Semantic roles & 50–950 ramp

primary
#CCC962
secondary
#44468F
accent
#51DA4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCC962

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

Preview Lab → · Contrast checker → · Palette generator →

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