#CEC240#CEC240

#CEC240 is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.1% C 0.147 H 104.0°. Best body text is #000000 at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#CEC240
RGBrgb(206, 194, 64)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 69%, 81%)
CMYKcmyk(0%, 5.8%, 68.9%, 19.2%)
CIE-LABlab(77.33, -10.64, 63.72)
CIE-LCHlch(77.33, 64.60, 99.48°)
OKLaboklab(80.09% -0.0355 0.1422)
OKLCHoklch(80.09% 0.147 104)
XYZxyz(45.6727, 52.0773, 12.4956)
Luminance0.5208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC240 #404CCE
analogous
#CE7B40 #CEC240 #93CE40
triadic
#CEC240 #40CEC2 #C240CE
tetradic
#CEC240 #40CE7B #404CCE #CE4093
square
#CEC240 #40CE7B #404CCE #CE4093
split-complementary
#CEC240 #4093CE #7B40CE
monochromatic
#756E1E #A69C2B #CEC240 #DAD271 #E7E1A1

Accessibility & contrast

On white

1.84
#CEC240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.42
#CEC240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC240
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC240#FFFFFF#000000##000000
##CEC2401.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BC2C
Deuteranopia (green-blind)
#D7C248
Tritanopia (blue-blind)
#DDB5A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec240;
/* rgb */ color: rgb(206, 194, 64);
/* oklch */ color: oklch(80.1% 0.147 104.0);
Tailwind
colors: {
  custom: {
    50: '#e0d47c',
    500: '#cec240',
    950: '#000000',
  },
}
SCSS
$custom: #cec240;
$custom-light: #e0d47c;
$custom-dark: #000000;
JSON
{
  "hex": "#cec240",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 64
  },
  "hsl": {
    "h": 54.93,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.8009,
    "c": 0.14657,
    "h": 104
  },
  "luminance": 0.52076
}

Semantic roles & 50–950 ramp

primary
#CEC240
secondary
#343A7E
accent
#53E245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC240

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

Preview Lab → · Contrast checker → · Palette generator →

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