#CCC162#CCC162

#CCC162 is a light, moderate yellow. Relative luminance 0.519; OKLCH L 80.0% C 0.118 H 102.7°. Best body text is #000000 at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#CCC162
RGBrgb(204, 193, 98)
HSLhsl(54, 51%, 59%)
HSVhsv(54, 52%, 80%)
CMYKcmyk(0%, 5.4%, 52%, 20%)
CIE-LABlab(77.20, -8.64, 48.67)
CIE-LCHlch(77.20, 49.43, 100.07°)
OKLaboklab(80.04% -0.0259 0.1147)
OKLCHoklch(80.04% 0.118 102.7)
XYZxyz(46.1778, 51.8607, 19.1306)
Luminance0.5186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCC162 #626DCC
analogous
#CC8C62 #CCC162 #A2CC62
triadic
#CCC162 #62CCC1 #C162CC
tetradic
#CCC162 #62CC8C #626DCC #CC62A2
square
#CCC162 #62CC8C #626DCC #CC62A2
split-complementary
#CCC162 #62A2CC #8C62CC
monochromatic
#887E2C #B6A93B #CCC162 #DBD390 #EAE5BE

Accessibility & contrast

On white

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

On black

11.37
#CCC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCC162
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCC162#FFFFFF#000000##000000
##CCC1621.001.8511.3711.37
#FFFFFF1.851.0021.0021.00
#00000011.3721.001.001.00
##00000011.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0BC59
Deuteranopia (green-blind)
#D3C166
Tritanopia (blue-blind)
#D9B6AB
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #ccc162;
/* rgb */ color: rgb(204, 193, 98);
/* oklch */ color: oklch(80.0% 0.118 102.7);
Tailwind
colors: {
  custom: {
    50: '#ded391',
    500: '#ccc162',
    950: '#000000',
  },
}
SCSS
$custom: #ccc162;
$custom-light: #ded391;
$custom-dark: #000000;
JSON
{
  "hex": "#ccc162",
  "rgb": {
    "r": 204,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 53.774,
    "s": 50.962,
    "l": 59.216
  },
  "oklch": {
    "l": 0.80044,
    "c": 0.11761,
    "h": 102.7
  },
  "luminance": 0.51859
}

Semantic roles & 50–950 ramp

primary
#CCC162
secondary
#444B8F
accent
#5CDA4D
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CCC162

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

Preview Lab → · Contrast checker → · Palette generator →

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