#CCC23D#CCC23D

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

Color values

HEX#CCC23D
RGBrgb(204, 194, 61)
HSLhsl(56, 58%, 52%)
HSVhsv(56, 70%, 80%)
CMYKcmyk(0%, 4.9%, 70.1%, 20%)
CIE-LABlab(77.14, -11.65, 64.61)
CIE-LCHlch(77.14, 65.65, 100.22°)
OKLaboklab(79.89% -0.0385 0.1437)
OKLCHoklch(79.89% 0.149 105)
XYZxyz(45.0378, 51.7596, 12.0322)
Luminance0.5176 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC23D #3D47CC
analogous
#CC7B3D #CCC23D #8FCC3D
triadic
#CCC23D #3DCCC2 #C23DCC
tetradic
#CCC23D #3DCC7B #3D47CC #CC3D8F
square
#CCC23D #3DCC7B #3D47CC #CC3D8F
split-complementary
#CCC23D #3D8FCC #7B3DCC
monochromatic
#716B1E #A1992A #CCC23D #D9D16D #E5E09E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCC23D#FFFFFF#000000##000000
##CCC23D1.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)
#D3BB28
Deuteranopia (green-blind)
#D6C146
Tritanopia (blue-blind)
#DBB5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc23d;
/* rgb */ color: rgb(204, 194, 61);
/* oklch */ color: oklch(79.9% 0.149 105.0);
Tailwind
colors: {
  custom: {
    50: '#dfd47b',
    500: '#ccc23d',
    950: '#000000',
  },
}
SCSS
$custom: #ccc23d;
$custom-light: #dfd47b;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc23d",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 61
  },
  "hsl": {
    "h": 55.804,
    "s": 58.367,
    "l": 51.961
  },
  "oklch": {
    "l": 0.79891,
    "c": 0.14872,
    "h": 105
  },
  "luminance": 0.51758
}

Semantic roles & 50–950 ramp

primary
#CCC23D
secondary
#33387A
accent
#51E246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC23D

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

Preview Lab → · Contrast checker → · Palette generator →

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