#CEC93B#CEC93B

#CEC93B is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.5% C 0.156 H 107.4°. Best body text is #000000 at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#CEC93B
RGBrgb(206, 201, 59)
HSLhsl(58, 60%, 52%)
HSVhsv(58, 71%, 81%)
CMYKcmyk(0%, 2.4%, 71.4%, 19.2%)
CIE-LABlab(79.16, -14.43, 67.36)
CIE-LCHlch(79.16, 68.89, 102.09°)
OKLaboklab(81.54% -0.0466 0.1491)
OKLCHoklch(81.54% 0.156 107.4)
XYZxyz(47.1315, 55.2125, 12.3112)
Luminance0.5521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC93B #3B40CE
analogous
#CE803B #CEC93B #8ACE3B
triadic
#CEC93B #3BCEC9 #C93BCE
tetradic
#CEC93B #3BCE80 #3B40CE #CE3B8A
square
#CEC93B #3BCE80 #3B40CE #CE3B8A
split-complementary
#CEC93B #3B8ACE #803BCE
monochromatic
#726F1D #A39F29 #CEC93B #DAD66C #E6E49D

Accessibility & contrast

On white

1.74
#CEC93B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.04
#CEC93B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC93B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC93B#FFFFFF#000000##000000
##CEC93B1.001.7412.0412.04
#FFFFFF1.741.0021.0021.00
#00000012.0421.001.001.00
##00000012.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC121
Deuteranopia (green-blind)
#DDC645
Tritanopia (blue-blind)
#DDBCAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec93b;
/* rgb */ color: rgb(206, 201, 59);
/* oklch */ color: oklch(81.5% 0.156 107.4);
Tailwind
colors: {
  custom: {
    50: '#e1d97a',
    500: '#cec93b',
    950: '#000000',
  },
}
SCSS
$custom: #cec93b;
$custom-light: #e1d97a;
$custom-dark: #000000;
JSON
{
  "hex": "#cec93b",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 59
  },
  "hsl": {
    "h": 57.959,
    "s": 60,
    "l": 51.961
  },
  "oklch": {
    "l": 0.81542,
    "c": 0.15619,
    "h": 107.4
  },
  "luminance": 0.55211
}

Semantic roles & 50–950 ramp

primary
#CEC93B
secondary
#32357B
accent
#4AE345
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #CEC93B

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

Preview Lab → · Contrast checker → · Palette generator →

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