#CCCB51#CCCB51

#CCCB51 is a light, vivid yellow. Relative luminance 0.561; OKLCH L 82.0% C 0.143 H 108.7°. Best body text is #000000 at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#CCCB51
RGBrgb(204, 203, 81)
HSLhsl(60, 55%, 56%)
HSVhsv(60, 60%, 80%)
CMYKcmyk(0%, 0.5%, 60.3%, 20%)
CIE-LABlab(79.70, -15.02, 59.22)
CIE-LCHlch(79.70, 61.10, 104.23°)
OKLaboklab(81.98% -0.0459 0.1354)
OKLCHoklch(81.98% 0.143 108.7)
XYZxyz(47.7444, 56.1447, 16.1050)
Luminance0.5614 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCB51 #5152CC
analogous
#CC8D51 #CCCB51 #8FCC51
triadic
#CCCB51 #51CCCB #CB51CC
tetradic
#CCCB51 #51CC8D #5152CC #CC518F
square
#CCCB51 #51CC8D #5152CC #CC518F
split-complementary
#CCCB51 #518FCC #8D51CC
monochromatic
#7E7D25 #ADAC33 #CCCB51 #DAD980 #E8E7B0

Accessibility & contrast

On white

1.72
#CCCB51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.23
#CCCB51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCB51
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCB51#FFFFFF#000000##000000
##CCCB511.001.7212.2312.23
#FFFFFF1.721.0021.0021.00
#00000012.2321.001.001.00
##00000012.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC343
Deuteranopia (green-blind)
#DCC858
Tritanopia (blue-blind)
#DABFB1
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cccb51;
/* rgb */ color: rgb(204, 203, 81);
/* oklch */ color: oklch(82.0% 0.143 108.7);
Tailwind
colors: {
  custom: {
    50: '#deda87',
    500: '#cccb51',
    950: '#000000',
  },
}
SCSS
$custom: #cccb51;
$custom-light: #deda87;
$custom-dark: #000000;
JSON
{
  "hex": "#cccb51",
  "rgb": {
    "r": 204,
    "g": 203,
    "b": 81
  },
  "hsl": {
    "h": 59.512,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81978,
    "c": 0.14297,
    "h": 108.7
  },
  "luminance": 0.56143
}

Semantic roles & 50–950 ramp

primary
#CCCB51
secondary
#3C3C86
accent
#4BDE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCCB51

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

Preview Lab → · Contrast checker → · Palette generator →

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