#CCC762#CCC762

#CCC762 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.3% C 0.124 H 106.3°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#CCC762
RGBrgb(204, 199, 98)
HSLhsl(57, 51%, 59%)
HSVhsv(57, 52%, 80%)
CMYKcmyk(0%, 2.5%, 52%, 20%)
CIE-LABlab(78.79, -11.71, 50.54)
CIE-LCHlch(78.79, 51.88, 103.05°)
OKLaboklab(81.31% -0.0347 0.1188)
OKLCHoklch(81.31% 0.124 106.3)
XYZxyz(47.5311, 54.5674, 19.5817)
Luminance0.5457 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC762 #6267CC
analogous
#CC9262 #CCC762 #9CCC62
triadic
#CCC762 #62CCC7 #C762CC
tetradic
#CCC762 #62CC92 #6267CC #CC629C
square
#CCC762 #62CC92 #6267CC #CC629C
split-complementary
#CCC762 #629CCC #9262CC
monochromatic
#88832C #B6B03B #CCC762 #DBD790 #EAE8BE

Accessibility & contrast

On white

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

On black

11.91
#CCC762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC762
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC762#FFFFFF#000000##000000
##CCC7621.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C158
Deuteranopia (green-blind)
#D8C567
Tritanopia (blue-blind)
#D9BCB0
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #ccc762;
/* rgb */ color: rgb(204, 199, 98);
/* oklch */ color: oklch(81.3% 0.124 106.3);
Tailwind
colors: {
  custom: {
    50: '#ded791',
    500: '#ccc762',
    950: '#000000',
  },
}
SCSS
$custom: #ccc762;
$custom-light: #ded791;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc762",
  "rgb": {
    "r": 204,
    "g": 199,
    "b": 98
  },
  "hsl": {
    "h": 57.17,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.81311,
    "c": 0.12375,
    "h": 106.3
  },
  "luminance": 0.54566
}

Semantic roles & 50–950 ramp

primary
#CCC762
secondary
#44478F
accent
#54DA4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCC762

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

Preview Lab → · Contrast checker → · Palette generator →

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