#CEC140#CEC140

#CEC140 is a light, vivid yellow. Relative luminance 0.516; OKLCH L 79.9% C 0.146 H 103.5°. Best body text is #000000 at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#CEC140
RGBrgb(206, 193, 64)
HSLhsl(55, 59%, 53%)
HSVhsv(55, 69%, 81%)
CMYKcmyk(0%, 6.3%, 68.9%, 19.2%)
CIE-LABlab(77.06, -10.13, 63.45)
CIE-LCHlch(77.06, 64.25, 99.07°)
OKLaboklab(79.88% -0.034 0.1417)
OKLCHoklch(79.88% 0.146 103.5)
XYZxyz(45.4509, 51.6337, 12.4217)
Luminance0.5163 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC140 #404DCE
analogous
#CE7A40 #CEC140 #94CE40
triadic
#CEC140 #40CEC1 #C140CE
tetradic
#CEC140 #40CE7A #404DCE #CE4094
square
#CEC140 #40CE7A #404DCE #CE4094
split-complementary
#CEC140 #4094CE #7A40CE
monochromatic
#756D1E #A69B2B #CEC140 #DAD171 #E7E1A1

Accessibility & contrast

On white

1.85
#CEC140 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.33
#CEC140 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC140
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC140#FFFFFF#000000##000000
##CEC1401.001.8511.3311.33
#FFFFFF1.851.0021.0021.00
#00000011.3321.001.001.00
##00000011.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2D
Deuteranopia (green-blind)
#D6C148
Tritanopia (blue-blind)
#DDB4A7
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec140;
/* rgb */ color: rgb(206, 193, 64);
/* oklch */ color: oklch(79.9% 0.146 103.5);
Tailwind
colors: {
  custom: {
    50: '#e0d37c',
    500: '#cec140',
    950: '#000000',
  },
}
SCSS
$custom: #cec140;
$custom-light: #e0d37c;
$custom-dark: #000000;
JSON
{
  "hex": "#cec140",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 64
  },
  "hsl": {
    "h": 54.507,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.79878,
    "c": 0.14569,
    "h": 103.5
  },
  "luminance": 0.51632
}

Semantic roles & 50–950 ramp

primary
#CEC140
secondary
#343B7E
accent
#54E245
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC140

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

Preview Lab → · Contrast checker → · Palette generator →

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