#CCD162#CCD162

#CCD162 is a very light, vivid yellow. Relative luminance 0.593; OKLCH L 83.4% C 0.135 H 111.3°. Best body text is #000000 at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#CCD162
RGBrgb(204, 209, 98)
HSLhsl(63, 55%, 60%)
HSVhsv(63, 53%, 82%)
CMYKcmyk(2.4%, 0%, 53.1%, 18%)
CIE-LABlab(81.47, -16.74, 53.65)
CIE-LCHlch(81.47, 56.21, 107.33°)
OKLaboklab(83.44% -0.049 0.1255)
OKLCHoklch(83.44% 0.135 111.3)
XYZxyz(49.9080, 59.3212, 20.3740)
Luminance0.5932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCD162 #6762D1
analogous
#D19F62 #CCD162 #94D162
triadic
#CCD162 #62CCD1 #D162CC
tetradic
#CCD162 #62D19F #6762D1 #D16294
square
#CCD162 #62D19F #6762D1 #D16294
split-complementary
#CCD162 #6294D1 #9F62D1
monochromatic
#8A8F2A #B8BE38 #CCD162 #DBDF91 #EBEDC1

Accessibility & contrast

On white

1.63
#CCD162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.86
#CCD162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCD162
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCD162#FFFFFF#000000##000000
##CCD1621.001.6312.8612.86
#FFFFFF1.631.0021.0021.00
#00000012.8621.001.001.00
##00000012.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC957
Deuteranopia (green-blind)
#E0CC68
Tritanopia (blue-blind)
#D8C6B8
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #ccd162;
/* rgb */ color: rgb(204, 209, 98);
/* oklch */ color: oklch(83.4% 0.135 111.3);
Tailwind
colors: {
  custom: {
    50: '#dedf92',
    500: '#ccd162',
    950: '#000000',
  },
}
SCSS
$custom: #ccd162;
$custom-light: #dedf92;
$custom-dark: #000000;
JSON
{
  "hex": "#ccd162",
  "rgb": {
    "r": 204,
    "g": 209,
    "b": 98
  },
  "hsl": {
    "h": 62.703,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.83443,
    "c": 0.13475,
    "h": 111.3
  },
  "luminance": 0.5932
}

Semantic roles & 50–950 ramp

primary
#CCD162
secondary
#464295
accent
#23C22A
background
#FEFEFC
surface
#FCFCF4
border
#D5D5CE
text
#15150D
muted
#84847F

Preview Lab

Preview with #CCD162

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

Preview Lab → · Contrast checker → · Palette generator →

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