#CEC757#CEC757

#CEC757 is a light, vivid yellow. Relative luminance 0.547; OKLCH L 81.4% C 0.134 H 105.7°. Best body text is #000000 at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#CEC757
RGBrgb(206, 199, 87)
HSLhsl(56, 55%, 57%)
HSVhsv(56, 58%, 81%)
CMYKcmyk(0%, 3.4%, 57.8%, 19.2%)
CIE-LABlab(78.84, -11.75, 55.71)
CIE-LCHlch(78.84, 56.93, 101.91°)
OKLaboklab(81.36% -0.0361 0.1286)
OKLCHoklch(81.36% 0.134 105.7)
XYZxyz(47.5988, 54.6583, 17.0578)
Luminance0.5466 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC757 #575ECE
analogous
#CE8C57 #CEC757 #99CE57
triadic
#CEC757 #57CEC7 #C757CE
tetradic
#CEC757 #57CE8C #575ECE #CE5799
square
#CEC757 #57CE8C #575ECE #CE5799
split-complementary
#CEC757 #5799CE #8C57CE
monochromatic
#847F27 #B3AC34 #CEC757 #DCD786 #EAE7B6

Accessibility & contrast

On white

1.76
#CEC757 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.93
#CEC757 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC757
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC757#FFFFFF#000000##000000
##CEC7571.001.7611.9311.93
#FFFFFF1.761.0021.0021.00
#00000011.9321.001.001.00
##00000011.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6C04B
Deuteranopia (green-blind)
#D9C55D
Tritanopia (blue-blind)
#DCBBAF
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec757;
/* rgb */ color: rgb(206, 199, 87);
/* oklch */ color: oklch(81.4% 0.134 105.7);
Tailwind
colors: {
  custom: {
    50: '#e0d78a',
    500: '#cec757',
    950: '#000000',
  },
}
SCSS
$custom: #cec757;
$custom-light: #e0d78a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec757",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 87
  },
  "hsl": {
    "h": 56.471,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.81356,
    "c": 0.13362,
    "h": 105.7
  },
  "luminance": 0.54657
}

Semantic roles & 50–950 ramp

primary
#CEC757
secondary
#3E438B
accent
#52DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC757

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

Preview Lab → · Contrast checker → · Palette generator →

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