#CEC162#CEC162

#CEC162 is a light, moderate yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.118 H 101.6°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#CEC162
RGBrgb(206, 193, 98)
HSLhsl(53, 52%, 60%)
HSVhsv(53, 52%, 81%)
CMYKcmyk(0%, 6.3%, 52.4%, 19.2%)
CIE-LABlab(77.37, -7.82, 48.91)
CIE-LCHlch(77.37, 49.53, 99.08°)
OKLaboklab(80.22% -0.0236 0.1152)
OKLCHoklch(80.22% 0.118 101.6)
XYZxyz(46.7296, 52.1452, 19.1564)
Luminance0.5214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC162 #626FCE
analogous
#CE8B62 #CEC162 #A5CE62
triadic
#CEC162 #62CEC1 #C162CE
tetradic
#CEC162 #62CE8B #626FCE #CE62A5
square
#CEC162 #62CE8B #626FCE #CE62A5
split-complementary
#CEC162 #62A5CE #8B62CE
monochromatic
#8A7F2B #B9AA3A #CEC162 #DDD391 #EBE6BF

Accessibility & contrast

On white

1.84
#CEC162 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#CEC162 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC162
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC162#FFFFFF#000000##000000
##CEC1621.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec162;
/* rgb */ color: rgb(206, 193, 98);
/* oklch */ color: oklch(80.2% 0.118 101.6);
Tailwind
colors: {
  custom: {
    50: '#dfd391',
    500: '#cec162',
    950: '#000000',
  },
}
SCSS
$custom: #cec162;
$custom-light: #dfd391;
$custom-dark: #000000;
JSON
{
  "hex": "#cec162",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 98
  },
  "hsl": {
    "h": 52.778,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.8022,
    "c": 0.11761,
    "h": 101.6
  },
  "luminance": 0.52144
}

Semantic roles & 50–950 ramp

primary
#CEC162
secondary
#434D91
accent
#5DDC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC162

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

Preview Lab → · Contrast checker → · Palette generator →

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