#CEC946#CEC946

#CEC946 is a light, vivid yellow. Relative luminance 0.553; OKLCH L 81.6% C 0.149 H 107.1°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#CEC946
RGBrgb(206, 201, 70)
HSLhsl(58, 58%, 54%)
HSVhsv(58, 66%, 81%)
CMYKcmyk(0%, 2.4%, 66%, 19.2%)
CIE-LABlab(79.24, -13.86, 63.31)
CIE-LCHlch(79.24, 64.81, 102.35°)
OKLaboklab(81.62% -0.0439 0.1424)
OKLCHoklch(81.62% 0.149 107.1)
XYZxyz(47.4474, 55.3389, 13.9753)
Luminance0.5534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC946 #464BCE
analogous
#CE8546 #CEC946 #8FCE46
triadic
#CEC946 #46CEC9 #C946CE
tetradic
#CEC946 #46CE85 #464BCE #CE468F
square
#CEC946 #46CE85 #464BCE #CE468F
split-complementary
#CEC946 #468FCE #8546CE
monochromatic
#797620 #AAA52D #CEC946 #DBD776 #E8E5A7

Accessibility & contrast

On white

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

On black

12.07
#CEC946 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC946
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC946#FFFFFF#000000##000000
##CEC9461.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C134
Deuteranopia (green-blind)
#DCC74E
Tritanopia (blue-blind)
#DCBCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec946;
/* rgb */ color: rgb(206, 201, 70);
/* oklch */ color: oklch(81.6% 0.149 107.1);
Tailwind
colors: {
  custom: {
    50: '#e0d980',
    500: '#cec946',
    950: '#000000',
  },
}
SCSS
$custom: #cec946;
$custom-light: #e0d980;
$custom-dark: #000000;
JSON
{
  "hex": "#cec946",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 70
  },
  "hsl": {
    "h": 57.794,
    "s": 58.12,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81623,
    "c": 0.14898,
    "h": 107.1
  },
  "luminance": 0.55337
}

Semantic roles & 50–950 ramp

primary
#CEC946
secondary
#373982
accent
#4CE146
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC946

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

Preview Lab → · Contrast checker → · Palette generator →

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