#CCC23A#CCC23A

#CCC23A is a light, vivid yellow. Relative luminance 0.517; OKLCH L 79.9% C 0.151 H 105.1°. Best body text is #000000 at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#CCC23A
RGBrgb(204, 194, 58)
HSLhsl(56, 59%, 51%)
HSVhsv(56, 72%, 80%)
CMYKcmyk(0%, 4.9%, 71.6%, 20%)
CIE-LABlab(77.12, -11.79, 65.69)
CIE-LCHlch(77.12, 66.74, 100.18°)
OKLaboklab(79.87% -0.0392 0.1454)
OKLCHoklch(79.87% 0.151 105.1)
XYZxyz(44.9592, 51.7281, 11.6185)
Luminance0.5173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC23A #3A44CC
analogous
#CC793A #CCC23A #8DCC3A
triadic
#CCC23A #3ACCC2 #C23ACC
tetradic
#CCC23A #3ACC79 #3A44CC #CC3A8D
square
#CCC23A #3ACC79 #3A44CC #CC3A8D
split-complementary
#CCC23A #3A8DCC #793ACC
monochromatic
#6F691D #A09729 #CCC23A #D9D16B #E5E09B

Accessibility & contrast

On white

1.85
#CCC23A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.35
#CCC23A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC23A
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC23A#FFFFFF#000000##000000
##CCC23A1.001.8511.3511.35
#FFFFFF1.851.0021.0021.00
#00000011.3521.001.001.00
##00000011.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB22
Deuteranopia (green-blind)
#D7C144
Tritanopia (blue-blind)
#DBB5A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc23a;
/* rgb */ color: rgb(204, 194, 58);
/* oklch */ color: oklch(79.9% 0.151 105.1);
Tailwind
colors: {
  custom: {
    50: '#dfd479',
    500: '#ccc23a',
    950: '#000000',
  },
}
SCSS
$custom: #ccc23a;
$custom-light: #dfd479;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc23a",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 58
  },
  "hsl": {
    "h": 55.89,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.7987,
    "c": 0.15059,
    "h": 105.1
  },
  "luminance": 0.51726
}

Semantic roles & 50–950 ramp

primary
#CCC23A
secondary
#323778
accent
#50E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC23A

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

Preview Lab → · Contrast checker → · Palette generator →

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