#CCE162#CCE162

#CCE162 is a very light, vivid yellow. Relative luminance 0.676; OKLCH L 86.9% C 0.154 H 117.6°. Best body text is #000000 at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#CCE162
RGBrgb(204, 225, 98)
HSLhsl(70, 68%, 63%)
HSVhsv(70, 56%, 88%)
CMYKcmyk(9.3%, 0%, 56.4%, 11.8%)
CIE-LABlab(85.79, -24.56, 58.59)
CIE-LCHlch(85.79, 63.53, 112.74°)
OKLaboklab(86.9% -0.0711 0.1361)
OKLCHoklch(86.9% 0.154 117.6)
XYZxyz(54.0325, 67.5701, 21.7488)
Luminance0.6757 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCE162 #7762E1
analogous
#E1B662 #CCE162 #8CE162
triadic
#CCE162 #62CCE1 #E162CC
tetradic
#CCE162 #62E1B6 #7762E1 #E1628C
square
#CCE162 #62E1B6 #7762E1 #E1628C
split-complementary
#CCE162 #628CE1 #B662E1
monochromatic
#92A820 #BBD72F #CCE162 #DDEB95 #EDF5C9

Accessibility & contrast

On white

1.45
#CCE162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.51
#CCE162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCE162
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCE162#FFFFFF#000000##000000
##CCE1621.001.4514.5114.51
#FFFFFF1.451.0021.0021.00
#00000014.5121.001.001.00
##00000014.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFD655
Deuteranopia (green-blind)
#ECD76A
Tritanopia (blue-blind)
#D7D6C5
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #cce162;
/* rgb */ color: rgb(204, 225, 98);
/* oklch */ color: oklch(86.9% 0.154 117.6);
Tailwind
colors: {
  custom: {
    50: '#deea93',
    500: '#cce162',
    950: '#000000',
  },
}
SCSS
$custom: #cce162;
$custom-light: #deea93;
$custom-dark: #000000;
JSON
{
  "hex": "#cce162",
  "rgb": {
    "r": 204,
    "g": 225,
    "b": 98
  },
  "hsl": {
    "h": 69.921,
    "s": 67.914,
    "l": 63.333
  },
  "oklch": {
    "l": 0.86902,
    "c": 0.15357,
    "h": 117.6
  },
  "luminance": 0.6757
}

Semantic roles & 50–950 ramp

primary
#CCE162
secondary
#4F3DAB
accent
#16D034
background
#FEFEFC
surface
#FCFDF4
border
#D5D5CE
text
#15160D
muted
#84847F

Preview Lab

Preview with #CCE162

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

Preview Lab → · Contrast checker → · Palette generator →

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