#CEC64F#CEC64F

#CEC64F is a light, vivid yellow. Relative luminance 0.541; OKLCH L 81.1% C 0.139 H 105.5°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#CEC64F
RGBrgb(206, 198, 79)
HSLhsl(56, 56%, 56%)
HSVhsv(56, 62%, 81%)
CMYKcmyk(0%, 3.9%, 61.7%, 19.2%)
CIE-LABlab(78.51, -11.80, 58.84)
CIE-LCHlch(78.51, 60.01, 101.34°)
OKLaboklab(81.06% -0.0371 0.1343)
OKLCHoklch(81.06% 0.139 105.5)
XYZxyz(47.0606, 54.0761, 15.3544)
Luminance0.5407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC64F #4F57CE
analogous
#CE864F #CEC64F #97CE4F
triadic
#CEC64F #4FCEC6 #C64FCE
tetradic
#CEC64F #4FCE86 #4F57CE #CE4F97
square
#CEC64F #4FCE86 #4F57CE #CE4F97
split-complementary
#CEC64F #4F97CE #864FCE
monochromatic
#7F7923 #AFA731 #CEC64F #DBD67F #E9E5AF

Accessibility & contrast

On white

1.78
#CEC64F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#CEC64F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC64F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC64F#FFFFFF#000000##000000
##CEC64F1.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF41
Deuteranopia (green-blind)
#D9C556
Tritanopia (blue-blind)
#DCBAAD
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #cec64f;
/* rgb */ color: rgb(206, 198, 79);
/* oklch */ color: oklch(81.1% 0.139 105.5);
Tailwind
colors: {
  custom: {
    50: '#e0d785',
    500: '#cec64f',
    950: '#000000',
  },
}
SCSS
$custom: #cec64f;
$custom-light: #e0d785;
$custom-dark: #000000;
JSON
{
  "hex": "#cec64f",
  "rgb": {
    "r": 206,
    "g": 198,
    "b": 79
  },
  "hsl": {
    "h": 56.22,
    "s": 56.444,
    "l": 55.882
  },
  "oklch": {
    "l": 0.81064,
    "c": 0.1393,
    "h": 105.5
  },
  "luminance": 0.54074
}

Semantic roles & 50–950 ramp

primary
#CEC64F
secondary
#3A3F87
accent
#52E048
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC64F

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

Preview Lab → · Contrast checker → · Palette generator →

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