#CCC252#CCC252

#CCC252 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.1% C 0.133 H 104.2°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#CCC252
RGBrgb(204, 194, 82)
HSLhsl(55, 54%, 56%)
HSVhsv(55, 60%, 80%)
CMYKcmyk(0%, 4.9%, 59.8%, 20%)
CIE-LABlab(77.30, -10.39, 56.17)
CIE-LCHlch(77.30, 57.13, 100.48°)
OKLaboklab(80.07% -0.0327 0.1291)
OKLCHoklch(80.07% 0.133 104.2)
XYZxyz(45.7182, 52.0318, 15.6159)
Luminance0.5203 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC252 #525CCC
analogous
#CC8552 #CCC252 #99CC52
triadic
#CCC252 #52CCC2 #C252CC
tetradic
#CCC252 #52CC85 #525CCC #CC5299
square
#CCC252 #52CC85 #525CCC #CC5299
split-complementary
#CCC252 #5299CC #8552CC
monochromatic
#7E7725 #AEA433 #CCC252 #DAD381 #E8E3B1

Accessibility & contrast

On white

1.84
#CCC252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#CCC252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC252
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC252#FFFFFF#000000##000000
##CCC2521.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D5C158
Tritanopia (blue-blind)
#DAB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc252;
/* rgb */ color: rgb(204, 194, 82);
/* oklch */ color: oklch(80.1% 0.133 104.2);
Tailwind
colors: {
  custom: {
    50: '#ded487',
    500: '#ccc252',
    950: '#000000',
  },
}
SCSS
$custom: #ccc252;
$custom-light: #ded487;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc252",
  "rgb": {
    "r": 204,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 55.082,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.80073,
    "c": 0.13312,
    "h": 104.2
  },
  "luminance": 0.5203
}

Semantic roles & 50–950 ramp

primary
#CCC252
secondary
#3C4286
accent
#56DE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCC252

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

Preview Lab → · Contrast checker → · Palette generator →

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