#CCC051#CCC051

#CCC051 is a light, vivid yellow. Relative luminance 0.511; OKLCH L 79.6% C 0.132 H 103.2°. Best body text is #000000 at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#CCC051
RGBrgb(204, 192, 81)
HSLhsl(54, 55%, 56%)
HSVhsv(54, 60%, 80%)
CMYKcmyk(0%, 5.9%, 60.3%, 20%)
CIE-LABlab(76.76, -9.44, 56.02)
CIE-LCHlch(76.76, 56.81, 99.56°)
OKLaboklab(79.64% -0.0301 0.1286)
OKLCHoklch(79.64% 0.132 103.2)
XYZxyz(45.2383, 51.1324, 15.2696)
Luminance0.5113 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC051 #515DCC
analogous
#CC8251 #CCC051 #9ACC51
triadic
#CCC051 #51CCC0 #C051CC
tetradic
#CCC051 #51CC82 #515DCC #CC519A
square
#CCC051 #51CC82 #515DCC #CC519A
split-complementary
#CCC051 #519ACC #8251CC
monochromatic
#7E7525 #ADA133 #CCC051 #DAD180 #E8E2B0

Accessibility & contrast

On white

1.87
#CCC051 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.23
#CCC051 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC051
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC051#FFFFFF#000000##000000
##CCC0511.001.8711.2311.23
#FFFFFF1.871.0021.0021.00
#00000011.2321.001.001.00
##00000011.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA45
Deuteranopia (green-blind)
#D4C057
Tritanopia (blue-blind)
#DAB4A8
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc051;
/* rgb */ color: rgb(204, 192, 81);
/* oklch */ color: oklch(79.6% 0.132 103.2);
Tailwind
colors: {
  custom: {
    50: '#ded286',
    500: '#ccc051',
    950: '#000000',
  },
}
SCSS
$custom: #ccc051;
$custom-light: #ded286;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc051",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 81
  },
  "hsl": {
    "h": 54.146,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.7964,
    "c": 0.13206,
    "h": 103.2
  },
  "luminance": 0.51131
}

Semantic roles & 50–950 ramp

primary
#CCC051
secondary
#3C4386
accent
#58DE4A
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC051

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

Preview Lab → · Contrast checker → · Palette generator →

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