#CEC845#CEC845

#CEC845 is a light, vivid yellow. Relative luminance 0.549; OKLCH L 81.4% C 0.149 H 106.7°. Best body text is #000000 at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#CEC845
RGBrgb(206, 200, 69)
HSLhsl(57, 58%, 54%)
HSVhsv(57, 67%, 81%)
CMYKcmyk(0%, 2.9%, 66.5%, 19.2%)
CIE-LABlab(78.96, -13.41, 63.43)
CIE-LCHlch(78.96, 64.83, 101.94°)
OKLaboklab(81.4% -0.0428 0.1424)
OKLCHoklch(81.4% 0.149 106.7)
XYZxyz(47.1838, 54.8616, 13.7330)
Luminance0.5486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC845 #454BCE
analogous
#CE8445 #CEC845 #90CE45
triadic
#CEC845 #45CEC8 #C845CE
tetradic
#CEC845 #45CE84 #454BCE #CE4590
square
#CEC845 #45CE84 #454BCE #CE4590
split-complementary
#CEC845 #4590CE #8445CE
monochromatic
#797520 #A9A42D #CEC845 #DBD675 #E8E5A6

Accessibility & contrast

On white

1.75
#CEC845 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.97
#CEC845 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC845
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC845#FFFFFF#000000##000000
##CEC8451.001.7511.9711.97
#FFFFFF1.751.0021.0021.00
#00000011.9721.001.001.00
##00000011.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C132
Deuteranopia (green-blind)
#DBC64D
Tritanopia (blue-blind)
#DDBBAD
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec845;
/* rgb */ color: rgb(206, 200, 69);
/* oklch */ color: oklch(81.4% 0.149 106.7);
Tailwind
colors: {
  custom: {
    50: '#e0d880',
    500: '#cec845',
    950: '#000000',
  },
}
SCSS
$custom: #cec845;
$custom-light: #e0d880;
$custom-dark: #000000;
JSON
{
  "hex": "#cec845",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 69
  },
  "hsl": {
    "h": 57.372,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81402,
    "c": 0.14872,
    "h": 106.7
  },
  "luminance": 0.5486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CEC845

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

Preview Lab → · Contrast checker → · Palette generator →

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