#CEC12F#CEC12F

#CEC12F is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.8% C 0.156 H 104.1°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#CEC12F
RGBrgb(206, 193, 47)
HSLhsl(55, 63%, 50%)
HSVhsv(55, 77%, 81%)
CMYKcmyk(0%, 6.3%, 77.2%, 19.2%)
CIE-LABlab(76.96, -10.89, 69.30)
CIE-LCHlch(76.96, 70.15, 98.93°)
OKLaboklab(79.77% -0.0378 0.151)
OKLCHoklch(79.77% 0.156 104.1)
XYZxyz(45.0387, 51.4689, 10.2509)
Luminance0.5147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC12F #2F3CCE
analogous
#CE712F #CEC12F #8CCE2F
triadic
#CEC12F #2FCEC1 #C12FCE
tetradic
#CEC12F #2FCE71 #2F3CCE #CE2F8C
square
#CEC12F #2FCE71 #2F3CCE #CE2F8C
split-complementary
#CEC12F #2F8CCE #712FCE
monochromatic
#6A6418 #9C9224 #CEC12F #DBD160 #E6DF91

Accessibility & contrast

On white

1.86
#CEC12F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#CEC12F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC12F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC12F#FFFFFF#000000##000000
##CEC12F1.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D3BA06
Deuteranopia (green-blind)
#D7C13B
Tritanopia (blue-blind)
#DEB3A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec12f;
/* rgb */ color: rgb(206, 193, 47);
/* oklch */ color: oklch(79.8% 0.156 104.1);
Tailwind
colors: {
  custom: {
    50: '#e1d374',
    500: '#cec12f',
    950: '#000000',
  },
}
SCSS
$custom: #cec12f;
$custom-light: #e1d374;
$custom-dark: #000000;
JSON
{
  "hex": "#cec12f",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 47
  },
  "hsl": {
    "h": 55.094,
    "s": 62.846,
    "l": 49.608
  },
  "oklch": {
    "l": 0.79768,
    "c": 0.15563,
    "h": 104.1
  },
  "luminance": 0.51467
}

Semantic roles & 50–950 ramp

primary
#CEC12F
secondary
#2D3374
accent
#4FE642
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC12F

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

Preview Lab → · Contrast checker → · Palette generator →

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