#CEC540#CEC540

#CEC540 is a light, vivid yellow. Relative luminance 0.534; OKLCH L 80.7% C 0.149 H 105.4°. Best body text is #000000 at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#CEC540
RGBrgb(206, 197, 64)
HSLhsl(56, 59%, 53%)
HSVhsv(56, 69%, 81%)
CMYKcmyk(0%, 4.4%, 68.9%, 19.2%)
CIE-LABlab(78.13, -12.17, 64.52)
CIE-LCHlch(78.13, 65.65, 100.68°)
OKLaboklab(80.73% -0.0398 0.1439)
OKLCHoklch(80.73% 0.149 105.4)
XYZxyz(46.3471, 53.4262, 12.7204)
Luminance0.5342 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC540 #4049CE
analogous
#CE7E40 #CEC540 #90CE40
triadic
#CEC540 #40CEC5 #C540CE
tetradic
#CEC540 #40CE7E #4049CE #CE4090
square
#CEC540 #40CE7E #4049CE #CE4090
split-complementary
#CEC540 #4090CE #7E40CE
monochromatic
#75701E #A69E2B #CEC540 #DAD471 #E7E3A1

Accessibility & contrast

On white

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

On black

11.68
#CEC540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC540
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC540#FFFFFF#000000##000000
##CEC5401.001.8011.6811.68
#FFFFFF1.801.0021.0021.00
#00000011.6821.001.001.00
##00000011.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BE2C
Deuteranopia (green-blind)
#D9C449
Tritanopia (blue-blind)
#DDB8AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec540;
/* rgb */ color: rgb(206, 197, 64);
/* oklch */ color: oklch(80.7% 0.149 105.4);
Tailwind
colors: {
  custom: {
    50: '#e0d67d',
    500: '#cec540',
    950: '#000000',
  },
}
SCSS
$custom: #cec540;
$custom-light: #e0d67d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec540",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 64
  },
  "hsl": {
    "h": 56.197,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.80725,
    "c": 0.1493,
    "h": 105.4
  },
  "luminance": 0.53424
}

Semantic roles & 50–950 ramp

primary
#CEC540
secondary
#34397E
accent
#4FE245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC540

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

Preview Lab → · Contrast checker → · Palette generator →

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