#CEC54F#CEC54F

#CEC54F is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.9% C 0.138 H 104.9°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#CEC54F
RGBrgb(206, 197, 79)
HSLhsl(56, 56%, 56%)
HSVhsv(56, 62%, 81%)
CMYKcmyk(0%, 4.4%, 61.7%, 19.2%)
CIE-LABlab(78.24, -11.29, 58.55)
CIE-LCHlch(78.24, 59.63, 100.91°)
OKLaboklab(80.85% -0.0357 0.1337)
OKLCHoklch(80.85% 0.138 104.9)
XYZxyz(46.8328, 53.6205, 15.2785)
Luminance0.5362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC54F #4F58CE
analogous
#CE854F #CEC54F #97CE4F
triadic
#CEC54F #4FCEC5 #C54FCE
tetradic
#CEC54F #4FCE85 #4F58CE #CE4F97
square
#CEC54F #4FCE85 #4F58CE #CE4F97
split-complementary
#CEC54F #4F97CE #854FCE
monochromatic
#7F7923 #AFA631 #CEC54F #DBD57F #E9E5AF

Accessibility & contrast

On white

1.79
#CEC54F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#CEC54F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC54F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC54F#FFFFFF#000000##000000
##CEC54F1.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE41
Deuteranopia (green-blind)
#D8C456
Tritanopia (blue-blind)
#DCB9AC
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #cec54f;
/* rgb */ color: rgb(206, 197, 79);
/* oklch */ color: oklch(80.9% 0.138 104.9);
Tailwind
colors: {
  custom: {
    50: '#e0d685',
    500: '#cec54f',
    950: '#000000',
  },
}
SCSS
$custom: #cec54f;
$custom-light: #e0d685;
$custom-dark: #000000;
JSON
{
  "hex": "#cec54f",
  "rgb": {
    "r": 206,
    "g": 197,
    "b": 79
  },
  "hsl": {
    "h": 55.748,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.80853,
    "c": 0.13833,
    "h": 104.9
  },
  "luminance": 0.53619
}

Semantic roles & 50–950 ramp

primary
#CEC54F
secondary
#3A4087
accent
#53E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC54F

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

Preview Lab → · Contrast checker → · Palette generator →

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