#CCCB3A#CCCB3A

#CCCB3A is a light, vivid yellow. Relative luminance 0.559; OKLCH L 81.8% C 0.159 H 109.1°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#CCCB3A
RGBrgb(204, 203, 58)
HSLhsl(60, 59%, 51%)
HSVhsv(60, 72%, 80%)
CMYKcmyk(0%, 0.5%, 71.6%, 20%)
CIE-LABlab(79.53, -16.32, 68.01)
CIE-LCHlch(79.53, 69.94, 103.50°)
OKLaboklab(81.8% -0.0519 0.1503)
OKLCHoklch(81.8% 0.159 109.1)
XYZxyz(47.0232, 55.8562, 12.3065)
Luminance0.5585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCCB3A #3A3BCC
analogous
#CC823A #CCCB3A #84CC3A
triadic
#CCCB3A #3ACCCB #CB3ACC
tetradic
#CCCB3A #3ACC82 #3A3BCC #CC3A84
square
#CCCB3A #3ACC82 #3A3BCC #CC3A84
split-complementary
#CCCB3A #3A84CC #823ACC
monochromatic
#6F6E1D #A09F29 #CCCB3A #D9D86B #E5E59B

Accessibility & contrast

On white

1.73
#CCCB3A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#CCCB3A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCCB3A
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCCB3A#FFFFFF#000000##000000
##CCCB3A1.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC31F
Deuteranopia (green-blind)
#DDC745
Tritanopia (blue-blind)
#DABEAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #cccb3a;
/* rgb */ color: rgb(204, 203, 58);
/* oklch */ color: oklch(81.8% 0.159 109.1);
Tailwind
colors: {
  custom: {
    50: '#dfda7a',
    500: '#cccb3a',
    950: '#000000',
  },
}
SCSS
$custom: #cccb3a;
$custom-light: #dfda7a;
$custom-dark: #000000;
JSON
{
  "hex": "#cccb3a",
  "rgb": {
    "r": 204,
    "g": 203,
    "b": 58
  },
  "hsl": {
    "h": 59.589,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.81795,
    "c": 0.15903,
    "h": 109.1
  },
  "luminance": 0.55855
}

Semantic roles & 50–950 ramp

primary
#CCCB3A
secondary
#323378
accent
#47E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCCB3A

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

Preview Lab → · Contrast checker → · Palette generator →

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