#CCC23B#CCC23B

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

Color values

HEX#CCC23B
RGBrgb(204, 194, 59)
HSLhsl(56, 59%, 52%)
HSVhsv(56, 71%, 80%)
CMYKcmyk(0%, 4.9%, 71.1%, 20%)
CIE-LABlab(77.12, -11.74, 65.33)
CIE-LCHlch(77.12, 66.38, 100.19°)
OKLaboklab(79.88% -0.039 0.1448)
OKLCHoklch(79.88% 0.15 105.1)
XYZxyz(44.9849, 51.7384, 11.7538)
Luminance0.5174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC23B #3B45CC
analogous
#CC7A3B #CCC23B #8ECC3B
triadic
#CCC23B #3BCCC2 #C23BCC
tetradic
#CCC23B #3BCC7A #3B45CC #CC3B8E
square
#CCC23B #3BCC7A #3B45CC #CC3B8E
split-complementary
#CCC23B #3B8ECC #7A3BCC
monochromatic
#706A1D #A0982A #CCC23B #D9D16C #E5E09C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCC23B#FFFFFF#000000##000000
##CCC23B1.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)
#D3BB24
Deuteranopia (green-blind)
#D7C144
Tritanopia (blue-blind)
#DBB5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc23b;
/* rgb */ color: rgb(204, 194, 59);
/* oklch */ color: oklch(79.9% 0.150 105.1);
Tailwind
colors: {
  custom: {
    50: '#dfd47a',
    500: '#ccc23b',
    950: '#000000',
  },
}
SCSS
$custom: #ccc23b;
$custom-light: #dfd47a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc23b",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 59
  },
  "hsl": {
    "h": 55.862,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.79877,
    "c": 0.14997,
    "h": 105.1
  },
  "luminance": 0.51737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC23B

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

Preview Lab → · Contrast checker → · Palette generator →

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