#CEC851#CEC851

#CEC851 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.5% C 0.140 H 106.4°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#CEC851
RGBrgb(206, 200, 81)
HSLhsl(57, 56%, 56%)
HSVhsv(57, 61%, 81%)
CMYKcmyk(0%, 2.9%, 60.7%, 19.2%)
CIE-LABlab(79.06, -12.68, 58.58)
CIE-LCHlch(79.06, 59.93, 102.21°)
OKLaboklab(81.51% -0.0394 0.134)
OKLCHoklch(81.51% 0.14 106.4)
XYZxyz(47.5947, 55.0260, 15.8970)
Luminance0.5502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC851 #5157CE
analogous
#CE8A51 #CEC851 #96CE51
triadic
#CEC851 #51CEC8 #C851CE
tetradic
#CEC851 #51CE8A #5157CE #CE5196
square
#CEC851 #51CE8A #5157CE #CE5196
split-complementary
#CEC851 #5196CE #8A51CE
monochromatic
#807C24 #B0AA32 #CEC851 #DBD781 #E9E6B1

Accessibility & contrast

On white

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

On black

12.00
#CEC851 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC851
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC851#FFFFFF#000000##000000
##CEC8511.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C143
Deuteranopia (green-blind)
#DBC658
Tritanopia (blue-blind)
#DCBCAF
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #cec851;
/* rgb */ color: rgb(206, 200, 81);
/* oklch */ color: oklch(81.5% 0.140 106.4);
Tailwind
colors: {
  custom: {
    50: '#e0d887',
    500: '#cec851',
    950: '#000000',
  },
}
SCSS
$custom: #cec851;
$custom-light: #e0d887;
$custom-dark: #000000;
JSON
{
  "hex": "#cec851",
  "rgb": {
    "r": 206,
    "g": 200,
    "b": 81
  },
  "hsl": {
    "h": 57.12,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81508,
    "c": 0.13965,
    "h": 106.4
  },
  "luminance": 0.55024
}

Semantic roles & 50–950 ramp

primary
#CEC851
secondary
#3B3F88
accent
#50DF48
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC851

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

Preview Lab → · Contrast checker → · Palette generator →

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