#CEC754#CEC754

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

Color values

HEX#CEC754
RGBrgb(206, 199, 84)
HSLhsl(57, 55%, 57%)
HSVhsv(57, 59%, 81%)
CMYKcmyk(0%, 3.4%, 59.2%, 19.2%)
CIE-LABlab(78.82, -11.96, 57.01)
CIE-LCHlch(78.82, 58.25, 101.85°)
OKLaboklab(81.33% -0.037 0.131)
OKLCHoklch(81.33% 0.136 105.8)
XYZxyz(47.4788, 54.6103, 16.4256)
Luminance0.5461 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC754 #545BCE
analogous
#CE8A54 #CEC754 #98CE54
triadic
#CEC754 #54CEC7 #C754CE
tetradic
#CEC754 #54CE8A #545BCE #CE5498
square
#CEC754 #54CE8A #545BCE #CE5498
split-complementary
#CEC754 #5498CE #8A54CE
monochromatic
#827D25 #B2AB33 #CEC754 #DCD784 #E9E6B3

Accessibility & contrast

On white

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

On black

11.92
#CEC754 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC754
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC754#FFFFFF#000000##000000
##CEC7541.001.7611.9211.92
#FFFFFF1.761.0021.0021.00
#00000011.9221.001.001.00
##00000011.9221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cec754;
/* rgb */ color: rgb(206, 199, 84);
/* oklch */ color: oklch(81.3% 0.136 105.8);
Tailwind
colors: {
  custom: {
    50: '#e0d788',
    500: '#cec754',
    950: '#000000',
  },
}
SCSS
$custom: #cec754;
$custom-light: #e0d788;
$custom-dark: #000000;
JSON
{
  "hex": "#cec754",
  "rgb": {
    "r": 206,
    "g": 199,
    "b": 84
  },
  "hsl": {
    "h": 56.557,
    "s": 55.455,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81325,
    "c": 0.13618,
    "h": 105.8
  },
  "luminance": 0.54609
}

Semantic roles & 50–950 ramp

primary
#CEC754
secondary
#3D418A
accent
#52DF49
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#16140C
muted
#84837F

Preview Lab

Preview with #CEC754

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

Preview Lab → · Contrast checker → · Palette generator →

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