#CCC951#CCC951

#CCC951 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.6% C 0.141 H 107.8°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CCC951
RGBrgb(204, 201, 81)
HSLhsl(59, 55%, 56%)
HSVhsv(59, 60%, 80%)
CMYKcmyk(0%, 1.5%, 60.3%, 20%)
CIE-LABlab(79.16, -14.01, 58.64)
CIE-LCHlch(79.16, 60.29, 103.44°)
OKLaboklab(81.55% -0.0431 0.1342)
OKLCHoklch(81.55% 0.141 107.8)
XYZxyz(47.2752, 55.2061, 15.9485)
Luminance0.5521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC951 #5154CC
analogous
#CC8B51 #CCC951 #91CC51
triadic
#CCC951 #51CCC9 #C951CC
tetradic
#CCC951 #51CC8B #5154CC #CC5191
square
#CCC951 #51CC8B #5154CC #CC5191
split-complementary
#CCC951 #5191CC #8B51CC
monochromatic
#7E7C25 #ADAA33 #CCC951 #DAD880 #E8E6B0

Accessibility & contrast

On white

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

On black

12.04
#CCC951 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC951
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC951#FFFFFF#000000##000000
##CCC9511.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C243
Deuteranopia (green-blind)
#DBC658
Tritanopia (blue-blind)
#DABDB0
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc951;
/* rgb */ color: rgb(204, 201, 81);
/* oklch */ color: oklch(81.6% 0.141 107.8);
Tailwind
colors: {
  custom: {
    50: '#ded987',
    500: '#ccc951',
    950: '#000000',
  },
}
SCSS
$custom: #ccc951;
$custom-light: #ded987;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc951",
  "rgb": {
    "r": 204,
    "g": 201,
    "b": 81
  },
  "hsl": {
    "h": 58.537,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81551,
    "c": 0.1409,
    "h": 107.8
  },
  "luminance": 0.55205
}

Semantic roles & 50–950 ramp

primary
#CCC951
secondary
#3C3D86
accent
#4DDE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CCC951

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

Preview Lab → · Contrast checker → · Palette generator →

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