#CCC862#CCC862

#CCC862 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.125 H 106.8°. Best body text is #000000 at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#CCC862
RGBrgb(204, 200, 98)
HSLhsl(58, 51%, 59%)
HSVhsv(58, 52%, 80%)
CMYKcmyk(0%, 2%, 52%, 20%)
CIE-LABlab(79.06, -12.22, 50.85)
CIE-LCHlch(79.06, 52.30, 103.51°)
OKLaboklab(81.52% -0.0361 0.1195)
OKLCHoklch(81.52% 0.125 106.8)
XYZxyz(47.7620, 55.0291, 19.6586)
Luminance0.5503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC862 #6266CC
analogous
#CC9362 #CCC862 #9BCC62
triadic
#CCC862 #62CCC8 #C862CC
tetradic
#CCC862 #62CC93 #6266CC #CC629B
square
#CCC862 #62CC93 #6266CC #CC629B
split-complementary
#CCC862 #629BCC #9362CC
monochromatic
#88842C #B6B13B #CCC862 #DBD890 #EAE8BE

Accessibility & contrast

On white

1.75
#CCC862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.01
#CCC862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC862
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC862#FFFFFF#000000##000000
##CCC8621.001.7512.0112.01
#FFFFFF1.751.0021.0021.00
#00000012.0121.001.001.00
##00000012.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#D9C667
Tritanopia (blue-blind)
#D9BDB1
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #ccc862;
/* rgb */ color: rgb(204, 200, 98);
/* oklch */ color: oklch(81.5% 0.125 106.8);
Tailwind
colors: {
  custom: {
    50: '#ded891',
    500: '#ccc862',
    950: '#000000',
  },
}
SCSS
$custom: #ccc862;
$custom-light: #ded891;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc862",
  "rgb": {
    "r": 204,
    "g": 200,
    "b": 98
  },
  "hsl": {
    "h": 57.736,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81523,
    "c": 0.12482,
    "h": 106.8
  },
  "luminance": 0.55028
}

Semantic roles & 50–950 ramp

primary
#CCC862
secondary
#44468F
accent
#53DA4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCC862

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

Preview Lab → · Contrast checker → · Palette generator →

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