#CEC562#CEC562

#CEC562 is a light, vivid yellow. Relative luminance 0.539; OKLCH L 81.1% C 0.122 H 104.1°. Best body text is #000000 at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#CEC562
RGBrgb(206, 197, 98)
HSLhsl(55, 52%, 60%)
HSVhsv(55, 52%, 81%)
CMYKcmyk(0%, 4.4%, 52.4%, 19.2%)
CIE-LABlab(78.43, -9.87, 50.15)
CIE-LCHlch(78.43, 51.12, 101.13°)
OKLaboklab(81.06% -0.0295 0.1179)
OKLCHoklch(81.06% 0.122 104.1)
XYZxyz(47.6258, 53.9377, 19.4552)
Luminance0.5394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC562 #626BCE
analogous
#CE8F62 #CEC562 #A1CE62
triadic
#CEC562 #62CEC5 #C562CE
tetradic
#CEC562 #62CE8F #626BCE #CE62A1
square
#CEC562 #62CE8F #626BCE #CE62A1
split-complementary
#CEC562 #62A1CE #8F62CE
monochromatic
#8A822B #B9AE3A #CEC562 #DDD691 #EBE7BF

Accessibility & contrast

On white

1.78
#CEC562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.79
#CEC562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC562
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC562#FFFFFF#000000##000000
##CEC5621.001.7811.7911.79
#FFFFFF1.781.0021.0021.00
#00000011.7921.001.001.00
##00000011.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BF59
Deuteranopia (green-blind)
#D7C467
Tritanopia (blue-blind)
#DBBAAF
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec562;
/* rgb */ color: rgb(206, 197, 98);
/* oklch */ color: oklch(81.1% 0.122 104.1);
Tailwind
colors: {
  custom: {
    50: '#dfd691',
    500: '#cec562',
    950: '#000000',
  },
}
SCSS
$custom: #cec562;
$custom-light: #dfd691;
$custom-dark: #000000;
JSON
{
  "hex": "#cec562",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 98
  },
  "hsl": {
    "h": 55,
    "s": 52.427,
    "l": 59.608
  },
  "oklch": {
    "l": 0.8106,
    "c": 0.12156,
    "h": 104.1
  },
  "luminance": 0.53936
}

Semantic roles & 50–950 ramp

primary
#CEC562
secondary
#434A91
accent
#58DC4C
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F

Preview Lab

Preview with #CEC562

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

Preview Lab → · Contrast checker → · Palette generator →

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