#CEC251#CEC251

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

Color values

HEX#CEC251
RGBrgb(206, 194, 81)
HSLhsl(54, 56%, 56%)
HSVhsv(54, 61%, 81%)
CMYKcmyk(0%, 5.8%, 60.7%, 19.2%)
CIE-LABlab(77.46, -9.62, 56.84)
CIE-LCHlch(77.46, 57.65, 99.61°)
OKLaboklab(80.24% -0.0307 0.1303)
OKLCHoklch(80.24% 0.134 103.3)
XYZxyz(46.2323, 52.3012, 15.4428)
Luminance0.5230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CEC251 #515DCE
analogous
#CE8451 #CEC251 #9CCE51
triadic
#CEC251 #51CEC2 #C251CE
tetradic
#CEC251 #51CE84 #515DCE #CE519C
square
#CEC251 #51CE84 #515DCE #CE519C
split-complementary
#CEC251 #519CCE #8451CE
monochromatic
#807824 #B0A432 #CEC251 #DBD381 #E9E3B1

Accessibility & contrast

On white

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

On black

11.46
#CEC251 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CEC251
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CEC251#FFFFFF#000000##000000
##CEC2511.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC44
Deuteranopia (green-blind)
#D6C257
Tritanopia (blue-blind)
#DCB6AA
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #cec251;
/* rgb */ color: rgb(206, 194, 81);
/* oklch */ color: oklch(80.2% 0.134 103.3);
Tailwind
colors: {
  custom: {
    50: '#e0d486',
    500: '#cec251',
    950: '#000000',
  },
}
SCSS
$custom: #cec251;
$custom-light: #e0d486;
$custom-dark: #000000;
JSON
{
  "hex": "#cec251",
  "rgb": {
    "r": 206,
    "g": 194,
    "b": 81
  },
  "hsl": {
    "h": 54.24,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.80238,
    "c": 0.13386,
    "h": 103.3
  },
  "luminance": 0.52299
}

Semantic roles & 50–950 ramp

primary
#CEC251
secondary
#3B4388
accent
#57DF48
background
#FEFEFB
surface
#FCFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #CEC251

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

Preview Lab → · Contrast checker → · Palette generator →

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