#CEC257#CEC257

#CEC257 is a light, vivid yellow. Relative luminance 0.524; OKLCH L 80.3% C 0.129 H 102.9°. Best body text is #000000 at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#CEC257
RGBrgb(206, 194, 87)
HSLhsl(54, 55%, 57%)
HSVhsv(54, 58%, 81%)
CMYKcmyk(0%, 5.8%, 57.8%, 19.2%)
CIE-LABlab(77.52, -9.20, 54.22)
CIE-LCHlch(77.52, 54.99, 99.63°)
OKLaboklab(80.3% -0.0288 0.1255)
OKLCHoklch(80.3% 0.129 102.9)
XYZxyz(46.4673, 52.3952, 16.6806)
Luminance0.5239 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC257 #5763CE
analogous
#CE8757 #CEC257 #9ECE57
triadic
#CEC257 #57CEC2 #C257CE
tetradic
#CEC257 #57CE87 #5763CE #CE579E
square
#CEC257 #57CE87 #5763CE #CE579E
split-complementary
#CEC257 #579ECE #8757CE
monochromatic
#847B27 #B3A734 #CEC257 #DCD386 #EAE4B6

Accessibility & contrast

On white

1.83
#CEC257 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.48
#CEC257 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC257
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC257#FFFFFF#000000##000000
##CEC2571.001.8311.4811.48
#FFFFFF1.831.0021.0021.00
#00000011.4821.001.001.00
##00000011.4821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec257;
/* rgb */ color: rgb(206, 194, 87);
/* oklch */ color: oklch(80.3% 0.129 102.9);
Tailwind
colors: {
  custom: {
    50: '#e0d48a',
    500: '#cec257',
    950: '#000000',
  },
}
SCSS
$custom: #cec257;
$custom-light: #e0d48a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec257",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 87
  },
  "hsl": {
    "h": 53.95,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80301,
    "c": 0.12874,
    "h": 102.9
  },
  "luminance": 0.52394
}

Semantic roles & 50–950 ramp

primary
#CEC257
secondary
#3E468B
accent
#59DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC257

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

Preview Lab → · Contrast checker → · Palette generator →

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