#CCC852#CCC852

#CCC852 is a light, vivid yellow. Relative luminance 0.548; OKLCH L 81.3% C 0.139 H 107.3°. Best body text is #000000 at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#CCC852
RGBrgb(204, 200, 82)
HSLhsl(58, 54%, 56%)
HSVhsv(58, 60%, 80%)
CMYKcmyk(0%, 2%, 59.8%, 20%)
CIE-LABlab(78.90, -13.44, 57.93)
CIE-LCHlch(78.90, 59.47, 103.06°)
OKLaboklab(81.35% -0.0413 0.1328)
OKLCHoklch(81.35% 0.139 107.3)
XYZxyz(47.0806, 54.7565, 16.0700)
Luminance0.5475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC852 #5256CC
analogous
#CC8B52 #CCC852 #93CC52
triadic
#CCC852 #52CCC8 #C852CC
tetradic
#CCC852 #52CC8B #5256CC #CC5293
square
#CCC852 #52CC8B #5256CC #CC5293
split-complementary
#CCC852 #5293CC #8B52CC
monochromatic
#7E7B25 #AEAA33 #CCC852 #DAD781 #E8E6B1

Accessibility & contrast

On white

1.76
#CCC852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.95
#CCC852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC852
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC852#FFFFFF#000000##000000
##CCC8521.001.7611.9511.95
#FFFFFF1.761.0021.0021.00
#00000011.9521.001.001.00
##00000011.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C144
Deuteranopia (green-blind)
#DAC659
Tritanopia (blue-blind)
#DABCAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #ccc852;
/* rgb */ color: rgb(204, 200, 82);
/* oklch */ color: oklch(81.3% 0.139 107.3);
Tailwind
colors: {
  custom: {
    50: '#ded887',
    500: '#ccc852',
    950: '#000000',
  },
}
SCSS
$custom: #ccc852;
$custom-light: #ded887;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc852",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 58.033,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.81347,
    "c": 0.13907,
    "h": 107.3
  },
  "luminance": 0.54755
}

Semantic roles & 50–950 ramp

primary
#CCC852
secondary
#3C3F86
accent
#4FDE4A
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#15140C
muted
#84837F

Preview Lab

Preview with #CCC852

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

Preview Lab → · Contrast checker → · Palette generator →

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