#CEC662#CEC662

#CEC662 is a light, vivid yellow. Relative luminance 0.544; OKLCH L 81.3% C 0.123 H 104.6°. Best body text is #000000 at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#CEC662
RGBrgb(206, 198, 98)
HSLhsl(56, 52%, 60%)
HSVhsv(56, 52%, 81%)
CMYKcmyk(0%, 3.9%, 52.4%, 19.2%)
CIE-LABlab(78.69, -10.38, 50.47)
CIE-LCHlch(78.69, 51.52, 101.62°)
OKLaboklab(81.27% -0.031 0.1186)
OKLCHoklch(81.27% 0.123 104.6)
XYZxyz(47.8537, 54.3933, 19.5311)
Luminance0.5439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC662 #626ACE
analogous
#CE9062 #CEC662 #A0CE62
triadic
#CEC662 #62CEC6 #C662CE
tetradic
#CEC662 #62CE90 #626ACE #CE62A0
square
#CEC662 #62CE90 #626ACE #CE62A0
split-complementary
#CEC662 #62A0CE #9062CE
monochromatic
#8A832B #B9B03A #CEC662 #DDD791 #EBE8BF

Accessibility & contrast

On white

1.77
#CEC662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.88
#CEC662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC662
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC662#FFFFFF#000000##000000
##CEC6621.001.7711.8811.88
#FFFFFF1.771.0021.0021.00
#00000011.8821.001.001.00
##00000011.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5C059
Deuteranopia (green-blind)
#D8C567
Tritanopia (blue-blind)
#DBBBAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec662;
/* rgb */ color: rgb(206, 198, 98);
/* oklch */ color: oklch(81.3% 0.123 104.6);
Tailwind
colors: {
  custom: {
    50: '#dfd791',
    500: '#cec662',
    950: '#000000',
  },
}
SCSS
$custom: #cec662;
$custom-light: #dfd791;
$custom-dark: #000000;
JSON
{
  "hex": "#cec662",
  "rgb": {
    "r": 206,
    "g": 198,
    "b": 98
  },
  "hsl": {
    "h": 55.556,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.8127,
    "c": 0.12257,
    "h": 104.6
  },
  "luminance": 0.54392
}

Semantic roles & 50–950 ramp

primary
#CEC662
secondary
#434991
accent
#57DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC662

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

Preview Lab → · Contrast checker → · Palette generator →

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