#CEC945#CEC945

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

Color values

HEX#CEC945
RGBrgb(206, 201, 69)
HSLhsl(58, 58%, 54%)
HSVhsv(58, 67%, 81%)
CMYKcmyk(0%, 2.4%, 66.5%, 19.2%)
CIE-LABlab(79.23, -13.92, 63.70)
CIE-LCHlch(79.23, 65.20, 102.33°)
OKLaboklab(81.62% -0.0442 0.143)
OKLCHoklch(81.62% 0.15 107.2)
XYZxyz(47.4161, 55.3263, 13.8104)
Luminance0.5533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC945 #454ACE
analogous
#CE8545 #CEC945 #8FCE45
triadic
#CEC945 #45CEC9 #C945CE
tetradic
#CEC945 #45CE85 #454ACE #CE458F
square
#CEC945 #45CE85 #454ACE #CE458F
split-complementary
#CEC945 #458FCE #8545CE
monochromatic
#797620 #A9A52D #CEC945 #DBD775 #E8E5A6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CEC945#FFFFFF#000000##000000
##CEC9451.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)
#D9C132
Deuteranopia (green-blind)
#DCC74E
Tritanopia (blue-blind)
#DDBCAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec945;
/* rgb */ color: rgb(206, 201, 69);
/* oklch */ color: oklch(81.6% 0.150 107.2);
Tailwind
colors: {
  custom: {
    50: '#e0d980',
    500: '#cec945',
    950: '#000000',
  },
}
SCSS
$custom: #cec945;
$custom-light: #e0d980;
$custom-dark: #000000;
JSON
{
  "hex": "#cec945",
  "rgb": {
    "r": 206,
    "g": 201,
    "b": 69
  },
  "hsl": {
    "h": 57.81,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81615,
    "c": 0.14968,
    "h": 107.2
  },
  "luminance": 0.55325
}

Semantic roles & 50–950 ramp

primary
#CEC945
secondary
#363981
accent
#4CE246
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC945

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

Preview Lab → · Contrast checker → · Palette generator →

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