#CCC23F#CCC23F

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

Color values

HEX#CCC23F
RGBrgb(204, 194, 63)
HSLhsl(56, 58%, 52%)
HSVhsv(56, 69%, 80%)
CMYKcmyk(0%, 4.9%, 69.1%, 20%)
CIE-LABlab(77.15, -11.54, 63.87)
CIE-LCHlch(77.15, 64.90, 100.25°)
OKLaboklab(79.91% -0.038 0.1424)
OKLCHoklch(79.91% 0.147 104.9)
XYZxyz(45.0926, 51.7815, 12.3212)
Luminance0.5178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC23F #3F49CC
analogous
#CC7C3F #CCC23F #8FCC3F
triadic
#CCC23F #3FCCC2 #C23FCC
tetradic
#CCC23F #3FCC7C #3F49CC #CC3F8F
square
#CCC23F #3FCC7C #3F49CC #CC3F8F
split-complementary
#CCC23F #3F8FCC #7C3FCC
monochromatic
#726C1E #A39A2B #CCC23F #D9D16F #E6E1A0

Accessibility & contrast

On white

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

On black

11.36
#CCC23F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC23F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC23F#FFFFFF#000000##000000
##CCC23F1.001.8511.3611.36
#FFFFFF1.851.0021.0021.00
#00000011.3621.001.001.00
##00000011.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BB2B
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#DBB5A8
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #ccc23f;
/* rgb */ color: rgb(204, 194, 63);
/* oklch */ color: oklch(79.9% 0.147 104.9);
Tailwind
colors: {
  custom: {
    50: '#dfd47c',
    500: '#ccc23f',
    950: '#000000',
  },
}
SCSS
$custom: #ccc23f;
$custom-light: #dfd47c;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc23f",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 63
  },
  "hsl": {
    "h": 55.745,
    "s": 58.025,
    "l": 52.353
  },
  "oklch": {
    "l": 0.79906,
    "c": 0.14741,
    "h": 104.9
  },
  "luminance": 0.5178
}

Semantic roles & 50–950 ramp

primary
#CCC23F
secondary
#34397B
accent
#52E147
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CCC23F

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

Preview Lab → · Contrast checker → · Palette generator →

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