#CEC340#CEC340

#CEC340 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.3% C 0.147 H 104.5°. Best body text is #000000 at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#CEC340
RGBrgb(206, 195, 64)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 69%, 81%)
CMYKcmyk(0%, 5.3%, 68.9%, 19.2%)
CIE-LABlab(77.59, -11.15, 63.98)
CIE-LCHlch(77.59, 64.95, 99.89°)
OKLaboklab(80.3% -0.0369 0.1428)
OKLCHoklch(80.3% 0.147 104.5)
XYZxyz(45.8960, 52.5240, 12.5701)
Luminance0.5252 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC340 #404BCE
analogous
#CE7C40 #CEC340 #92CE40
triadic
#CEC340 #40CEC3 #C340CE
tetradic
#CEC340 #40CE7C #404BCE #CE4092
square
#CEC340 #40CE7C #404BCE #CE4092
split-complementary
#CEC340 #4092CE #7C40CE
monochromatic
#756F1E #A69D2B #CEC340 #DAD271 #E7E2A1

Accessibility & contrast

On white

1.83
#CEC340 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.50
#CEC340 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC340
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC340#FFFFFF#000000##000000
##CEC3401.001.8311.5011.50
#FFFFFF1.831.0021.0021.00
#00000011.5021.001.001.00
##00000011.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BC2C
Deuteranopia (green-blind)
#D8C249
Tritanopia (blue-blind)
#DDB6A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #cec340;
/* rgb */ color: rgb(206, 195, 64);
/* oklch */ color: oklch(80.3% 0.147 104.5);
Tailwind
colors: {
  custom: {
    50: '#e0d47d',
    500: '#cec340',
    950: '#000000',
  },
}
SCSS
$custom: #cec340;
$custom-light: #e0d47d;
$custom-dark: #000000;
JSON
{
  "hex": "#cec340",
  "rgb": {
    "r": 206,
    "g": 195,
    "b": 64
  },
  "hsl": {
    "h": 55.352,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.80301,
    "c": 0.14747,
    "h": 104.5
  },
  "luminance": 0.52522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC340

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

Preview Lab → · Contrast checker → · Palette generator →

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