#CEC751#CEC751

#CEC751 is a light, vivid yellow. Relative luminance 0.546; OKLCH L 81.3% C 0.139 H 105.9°. Best body text is #000000 at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#CEC751
RGBrgb(206, 199, 81)
HSLhsl(57, 56%, 56%)
HSVhsv(57, 61%, 81%)
CMYKcmyk(0%, 3.4%, 60.7%, 19.2%)
CIE-LABlab(78.79, -12.17, 58.29)
CIE-LCHlch(78.79, 59.54, 101.79°)
OKLaboklab(81.3% -0.038 0.1334)
OKLCHoklch(81.3% 0.139 105.9)
XYZxyz(47.3638, 54.5643, 15.8200)
Luminance0.5456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC751 #5158CE
analogous
#CE8951 #CEC751 #97CE51
triadic
#CEC751 #51CEC7 #C751CE
tetradic
#CEC751 #51CE89 #5158CE #CE5197
square
#CEC751 #51CE89 #5158CE #CE5197
split-complementary
#CEC751 #5197CE #8951CE
monochromatic
#807B24 #B0A932 #CEC751 #DBD681 #E9E6B1

Accessibility & contrast

On white

1.76
#CEC751 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.91
#CEC751 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC751
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC751#FFFFFF#000000##000000
##CEC7511.001.7611.9111.91
#FFFFFF1.761.0021.0021.00
#00000011.9121.001.001.00
##00000011.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C043
Deuteranopia (green-blind)
#DAC558
Tritanopia (blue-blind)
#DCBBAE
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #cec751;
/* rgb */ color: rgb(206, 199, 81);
/* oklch */ color: oklch(81.3% 0.139 105.9);
Tailwind
colors: {
  custom: {
    50: '#e0d787',
    500: '#cec751',
    950: '#000000',
  },
}
SCSS
$custom: #cec751;
$custom-light: #e0d787;
$custom-dark: #000000;
JSON
{
  "hex": "#cec751",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 81
  },
  "hsl": {
    "h": 56.64,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81296,
    "c": 0.13866,
    "h": 105.9
  },
  "luminance": 0.54563
}

Semantic roles & 50–950 ramp

primary
#CEC751
secondary
#3B4088
accent
#51DF48
background
#FEFEFC
surface
#FCFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC751

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

Preview Lab → · Contrast checker → · Palette generator →

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