#CEC12D#CEC12D

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

Color values

HEX#CEC12D
RGBrgb(206, 193, 45)
HSLhsl(55, 64%, 49%)
HSVhsv(55, 78%, 81%)
CMYKcmyk(0%, 6.3%, 78.2%, 19.2%)
CIE-LABlab(76.95, -10.96, 69.90)
CIE-LCHlch(76.95, 70.75, 98.91°)
OKLaboklab(79.76% -0.0382 0.1519)
OKLCHoklch(79.76% 0.157 104.1)
XYZxyz(44.9993, 51.4531, 10.0432)
Luminance0.5145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC12D #2D3ACE
analogous
#CE712D #CEC12D #8BCE2D
triadic
#CEC12D #2DCEC1 #C12DCE
tetradic
#CEC12D #2DCE71 #2D3ACE #CE2D8B
square
#CEC12D #2DCE71 #2D3ACE #CE2D8B
split-complementary
#CEC12D #2D8BCE #712DCE
monochromatic
#6A6317 #9C9222 #CEC12D #DCD15D #E7DF8F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC12D#FFFFFF#000000##000000
##CEC12D1.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)
#D3BA00
Deuteranopia (green-blind)
#D7C139
Tritanopia (blue-blind)
#DEB3A6
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #cec12d;
/* rgb */ color: rgb(206, 193, 45);
/* oklch */ color: oklch(79.8% 0.157 104.1);
Tailwind
colors: {
  custom: {
    50: '#e1d373',
    500: '#cec12d',
    950: '#000000',
  },
}
SCSS
$custom: #cec12d;
$custom-light: #e1d373;
$custom-dark: #000000;
JSON
{
  "hex": "#cec12d",
  "rgb": {
    "r": 206,
    "g": 193,
    "b": 45
  },
  "hsl": {
    "h": 55.155,
    "s": 64.143,
    "l": 49.216
  },
  "oklch": {
    "l": 0.79757,
    "c": 0.1566,
    "h": 104.1
  },
  "luminance": 0.51451
}

Semantic roles & 50–950 ramp

primary
#CEC12D
secondary
#2C3273
accent
#4EE741
background
#FEFEFB
surface
#FDFBF1
border
#D5D4CB
text
#161409
muted
#84837D

Preview Lab

Preview with #CEC12D

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

Preview Lab → · Contrast checker → · Palette generator →

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