#CEC762#CEC762

#CEC762 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.5% C 0.124 H 105.2°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#CEC762
RGBrgb(206, 199, 98)
HSLhsl(56, 52%, 60%)
HSVhsv(56, 52%, 81%)
CMYKcmyk(0%, 3.4%, 52.4%, 19.2%)
CIE-LABlab(78.96, -10.89, 50.78)
CIE-LCHlch(78.96, 51.93, 102.11°)
OKLaboklab(81.48% -0.0325 0.1193)
OKLCHoklch(81.48% 0.124 105.2)
XYZxyz(48.0830, 54.8520, 19.6075)
Luminance0.5485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC762 #6269CE
analogous
#CE9162 #CEC762 #9FCE62
triadic
#CEC762 #62CEC7 #C762CE
tetradic
#CEC762 #62CE91 #6269CE #CE629F
square
#CEC762 #62CE91 #6269CE #CE629F
split-complementary
#CEC762 #629FCE #9162CE
monochromatic
#8A842B #B9B13A #CEC762 #DDD891 #EBE8BF

Accessibility & contrast

On white

1.75
#CEC762 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.97
#CEC762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC762
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC762#FFFFFF#000000##000000
##CEC7621.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C158
Deuteranopia (green-blind)
#D9C667
Tritanopia (blue-blind)
#DBBCB0
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec762;
/* rgb */ color: rgb(206, 199, 98);
/* oklch */ color: oklch(81.5% 0.124 105.2);
Tailwind
colors: {
  custom: {
    50: '#dfd791',
    500: '#cec762',
    950: '#000000',
  },
}
SCSS
$custom: #cec762;
$custom-light: #dfd791;
$custom-dark: #000000;
JSON
{
  "hex": "#cec762",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 98
  },
  "hsl": {
    "h": 56.111,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.81481,
    "c": 0.12361,
    "h": 105.2
  },
  "luminance": 0.54851
}

Semantic roles & 50–950 ramp

primary
#CEC762
secondary
#434891
accent
#55DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC762

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

Preview Lab → · Contrast checker → · Palette generator →

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