#CEC862#CEC862

#CEC862 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.7% C 0.125 H 105.8°. Best body text is #000000 at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#CEC862
RGBrgb(206, 200, 98)
HSLhsl(57, 52%, 60%)
HSVhsv(57, 52%, 81%)
CMYKcmyk(0%, 2.9%, 52.4%, 19.2%)
CIE-LABlab(79.22, -11.40, 51.09)
CIE-LCHlch(79.22, 52.34, 102.58°)
OKLaboklab(81.69% -0.0339 0.1199)
OKLCHoklch(81.69% 0.125 105.8)
XYZxyz(48.3138, 55.3136, 19.6845)
Luminance0.5531 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC862 #6268CE
analogous
#CE9262 #CEC862 #9ECE62
triadic
#CEC862 #62CEC8 #C862CE
tetradic
#CEC862 #62CE92 #6268CE #CE629E
square
#CEC862 #62CE92 #6268CE #CE629E
split-complementary
#CEC862 #629ECE #9262CE
monochromatic
#8A852B #B9B23A #CEC862 #DDD891 #EBE9BF

Accessibility & contrast

On white

1.74
#CEC862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.06
#CEC862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC862
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC862#FFFFFF#000000##000000
##CEC8621.001.7412.0612.06
#FFFFFF1.741.0021.0021.00
#00000012.0621.001.001.00
##00000012.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C258
Deuteranopia (green-blind)
#D9C667
Tritanopia (blue-blind)
#DBBDB1
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec862;
/* rgb */ color: rgb(206, 200, 98);
/* oklch */ color: oklch(81.7% 0.125 105.8);
Tailwind
colors: {
  custom: {
    50: '#dfd891',
    500: '#cec862',
    950: '#000000',
  },
}
SCSS
$custom: #cec862;
$custom-light: #dfd891;
$custom-dark: #000000;
JSON
{
  "hex": "#cec862",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 98
  },
  "hsl": {
    "h": 56.667,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81693,
    "c": 0.12464,
    "h": 105.8
  },
  "luminance": 0.55312
}

Semantic roles & 50–950 ramp

primary
#CEC862
secondary
#434791
accent
#54DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC862

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

Preview Lab → · Contrast checker → · Palette generator →

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