#CEC440#CEC440

#CEC440 is a light, vivid yellow. Relative luminance 0.530; OKLCH L 80.5% C 0.148 H 105.0°. Best body text is #000000 at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#CEC440
RGBrgb(206, 196, 64)
HSLhsl(56, 59%, 53%)
HSVhsv(56, 69%, 81%)
CMYKcmyk(0%, 4.9%, 68.9%, 19.2%)
CIE-LABlab(77.86, -11.66, 64.25)
CIE-LCHlch(77.86, 65.30, 100.29°)
OKLaboklab(80.51% -0.0383 0.1433)
OKLCHoklch(80.51% 0.148 105)
XYZxyz(46.1208, 52.9736, 12.6450)
Luminance0.5297 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC440 #404ACE
analogous
#CE7D40 #CEC440 #91CE40
triadic
#CEC440 #40CEC4 #C440CE
tetradic
#CEC440 #40CE7D #404ACE #CE4091
square
#CEC440 #40CE7D #404ACE #CE4091
split-complementary
#CEC440 #4091CE #7D40CE
monochromatic
#756F1E #A69D2B #CEC440 #DAD371 #E7E2A1

Accessibility & contrast

On white

1.81
#CEC440 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.59
#CEC440 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC440
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC440#FFFFFF#000000##000000
##CEC4401.001.8111.5911.59
#FFFFFF1.811.0021.0021.00
#00000011.5921.001.001.00
##00000011.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BD2C
Deuteranopia (green-blind)
#D8C349
Tritanopia (blue-blind)
#DDB7AA
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec440;
/* rgb */ color: rgb(206, 196, 64);
/* oklch */ color: oklch(80.5% 0.148 105.0);
Tailwind
colors: {
  custom: {
    50: '#e0d57d',
    500: '#cec440',
    950: '#000000',
  },
}
SCSS
$custom: #cec440;
$custom-light: #e0d57d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec440",
  "rgb": {
    "r": 206,
    "g": 196,
    "b": 64
  },
  "hsl": {
    "h": 55.775,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.80513,
    "c": 0.14838,
    "h": 105
  },
  "luminance": 0.52972
}

Semantic roles & 50–950 ramp

primary
#CEC440
secondary
#34397E
accent
#50E245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC440

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

Preview Lab → · Contrast checker → · Palette generator →

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