#CEC457#CEC457

#CEC457 is a light, vivid yellow. Relative luminance 0.533; OKLCH L 80.7% C 0.131 H 104.1°. Best body text is #000000 at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#CEC457
RGBrgb(206, 196, 87)
HSLhsl(55, 55%, 57%)
HSVhsv(55, 58%, 81%)
CMYKcmyk(0%, 4.9%, 57.8%, 19.2%)
CIE-LABlab(78.05, -10.22, 54.82)
CIE-LCHlch(78.05, 55.76, 100.56°)
OKLaboklab(80.72% -0.0317 0.1268)
OKLCHoklch(80.72% 0.131 104.1)
XYZxyz(46.9154, 53.2914, 16.8299)
Luminance0.5329 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC457 #5761CE
analogous
#CE8957 #CEC457 #9DCE57
triadic
#CEC457 #57CEC4 #C457CE
tetradic
#CEC457 #57CE89 #5761CE #CE579D
square
#CEC457 #57CE89 #5761CE #CE579D
split-complementary
#CEC457 #579DCE #8957CE
monochromatic
#847C27 #B3A934 #CEC457 #DCD586 #EAE5B6

Accessibility & contrast

On white

1.80
#CEC457 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.66
#CEC457 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC457
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC457#FFFFFF#000000##000000
##CEC4571.001.8011.6611.66
#FFFFFF1.801.0021.0021.00
#00000011.6621.001.001.00
##00000011.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BE4B
Deuteranopia (green-blind)
#D7C35D
Tritanopia (blue-blind)
#DCB8AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec457;
/* rgb */ color: rgb(206, 196, 87);
/* oklch */ color: oklch(80.7% 0.131 104.1);
Tailwind
colors: {
  custom: {
    50: '#e0d58a',
    500: '#cec457',
    950: '#000000',
  },
}
SCSS
$custom: #cec457;
$custom-light: #e0d58a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec457",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 87
  },
  "hsl": {
    "h": 54.958,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.80722,
    "c": 0.13067,
    "h": 104.1
  },
  "luminance": 0.5329
}

Semantic roles & 50–950 ramp

primary
#CEC457
secondary
#3E448B
accent
#56DE4A
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC457

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

Preview Lab → · Contrast checker → · Palette generator →

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