#CCC23C#CCC23C

#CCC23C is a light, vivid yellow. Relative luminance 0.517; 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#CCC23C
RGBrgb(204, 194, 60)
HSLhsl(56, 59%, 52%)
HSVhsv(56, 71%, 80%)
CMYKcmyk(0%, 4.9%, 70.6%, 20%)
CIE-LABlab(77.13, -11.69, 64.97)
CIE-LCHlch(77.13, 66.01, 100.20°)
OKLaboklab(79.88% -0.0387 0.1442)
OKLCHoklch(79.88% 0.149 105)
XYZxyz(45.0111, 51.7489, 11.8917)
Luminance0.5175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC23C #3C46CC
analogous
#CC7A3C #CCC23C #8ECC3C
triadic
#CCC23C #3CCCC2 #C23CCC
tetradic
#CCC23C #3CCC7A #3C46CC #CC3C8E
square
#CCC23C #3CCC7A #3C46CC #CC3C8E
split-complementary
#CCC23C #3C8ECC #7A3CCC
monochromatic
#706A1D #A1992A #CCC23C #D9D16D #E5E09D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CCC23C#FFFFFF#000000##000000
##CCC23C1.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)
#D3BB26
Deuteranopia (green-blind)
#D6C145
Tritanopia (blue-blind)
#DBB5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc23c;
/* rgb */ color: rgb(204, 194, 60);
/* oklch */ color: oklch(79.9% 0.149 105.0);
Tailwind
colors: {
  custom: {
    50: '#dfd47a',
    500: '#ccc23c',
    950: '#000000',
  },
}
SCSS
$custom: #ccc23c;
$custom-light: #dfd47a;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc23c",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 60
  },
  "hsl": {
    "h": 55.833,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.79884,
    "c": 0.14935,
    "h": 105
  },
  "luminance": 0.51747
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CCC23C

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

Preview Lab → · Contrast checker → · Palette generator →

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