#CEC24F#CEC24F

#CEC24F is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.2% C 0.135 H 103.4°. Best body text is #000000 at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#CEC24F
RGBrgb(206, 194, 79)
HSLhsl(54, 56%, 56%)
HSVhsv(54, 62%, 81%)
CMYKcmyk(0%, 5.8%, 61.7%, 19.2%)
CIE-LABlab(77.44, -9.76, 57.69)
CIE-LCHlch(77.44, 58.51, 99.60°)
OKLaboklab(80.22% -0.0313 0.1318)
OKLCHoklch(80.22% 0.135 103.4)
XYZxyz(46.1584, 52.2716, 15.0536)
Luminance0.5227 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC24F #4F5BCE
analogous
#CE824F #CEC24F #9ACE4F
triadic
#CEC24F #4FCEC2 #C24FCE
tetradic
#CEC24F #4FCE82 #4F5BCE #CE4F9A
square
#CEC24F #4FCE82 #4F5BCE #CE4F9A
split-complementary
#CEC24F #4F9ACE #824FCE
monochromatic
#7F7723 #AFA331 #CEC24F #DBD37F #E9E3AF

Accessibility & contrast

On white

1.83
#CEC24F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.45
#CEC24F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC24F
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC24F#FFFFFF#000000##000000
##CEC24F1.001.8311.4511.45
#FFFFFF1.831.0021.0021.00
#00000011.4521.001.001.00
##00000011.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC42
Deuteranopia (green-blind)
#D6C255
Tritanopia (blue-blind)
#DDB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec24f;
/* rgb */ color: rgb(206, 194, 79);
/* oklch */ color: oklch(80.2% 0.135 103.4);
Tailwind
colors: {
  custom: {
    50: '#e0d485',
    500: '#cec24f',
    950: '#000000',
  },
}
SCSS
$custom: #cec24f;
$custom-light: #e0d485;
$custom-dark: #000000;
JSON
{
  "hex": "#cec24f",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 79
  },
  "hsl": {
    "h": 54.331,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.80219,
    "c": 0.13549,
    "h": 103.4
  },
  "luminance": 0.5227
}

Semantic roles & 50–950 ramp

primary
#CEC24F
secondary
#3A4287
accent
#56E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC24F

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

Preview Lab → · Contrast checker → · Palette generator →

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