#CCC04B#CCC04B

#CCC04B is a light, vivid yellow. Relative luminance 0.510; OKLCH L 79.6% C 0.137 H 103.5°. Best body text is #000000 at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#CCC04B
RGBrgb(204, 192, 75)
HSLhsl(54, 56%, 55%)
HSVhsv(54, 63%, 80%)
CMYKcmyk(0%, 5.9%, 63.2%, 20%)
CIE-LABlab(76.71, -9.83, 58.57)
CIE-LCHlch(76.71, 59.39, 99.53°)
OKLaboklab(79.58% -0.0319 0.1332)
OKLCHoklch(79.58% 0.137 103.5)
XYZxyz(45.0232, 51.0463, 14.1366)
Luminance0.5104 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC04B #4B57CC
analogous
#CC804B #CCC04B #97CC4B
triadic
#CCC04B #4BCCC0 #C04BCC
tetradic
#CCC04B #4BCC80 #4B57CC #CC4B97
square
#CCC04B #4BCC80 #4B57CC #CC4B97
split-complementary
#CCC04B #4B97CC #804BCC
monochromatic
#7A7223 #AA9E30 #CCC04B #DAD17B #E7E1AA

Accessibility & contrast

On white

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

On black

11.21
#CCC04B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC04B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC04B#FFFFFF#000000##000000
##CCC04B1.001.8711.2111.21
#FFFFFF1.871.0021.0021.00
#00000011.2121.001.001.00
##00000011.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BA3D
Deuteranopia (green-blind)
#D4C052
Tritanopia (blue-blind)
#DBB4A7
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #ccc04b;
/* rgb */ color: rgb(204, 192, 75);
/* oklch */ color: oklch(79.6% 0.137 103.5);
Tailwind
colors: {
  custom: {
    50: '#dfd283',
    500: '#ccc04b',
    950: '#000000',
  },
}
SCSS
$custom: #ccc04b;
$custom-light: #dfd283;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc04b",
  "rgb": {
    "r": 204,
    "g": 192,
    "b": 75
  },
  "hsl": {
    "h": 54.419,
    "s": 55.844,
    "l": 54.706
  },
  "oklch": {
    "l": 0.79582,
    "c": 0.13692,
    "h": 103.5
  },
  "luminance": 0.51045
}

Semantic roles & 50–950 ramp

primary
#CCC04B
secondary
#394082
accent
#57DF49
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CCC04B

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

Preview Lab → · Contrast checker → · Palette generator →

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