#FFEC97#FFEC97

#FFEC97 is a very light, moderate yellow. Relative luminance 0.835; OKLCH L 94.0% C 0.107 H 97.1°. Best body text is #000000 at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#FFEC97
RGBrgb(255, 236, 151)
HSLhsl(49, 100%, 80%)
HSVhsv(49, 41%, 100%)
CMYKcmyk(0%, 7.5%, 40.8%, 0%)
CIE-LABlab(93.23, -5.06, 43.50)
CIE-LCHlch(93.23, 43.79, 96.63°)
OKLaboklab(93.99% -0.0132 0.1062)
OKLCHoklch(93.99% 0.107 97.1)
XYZxyz(76.8231, 83.4878, 41.3402)
Luminance0.8348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC97 #97AAFF
analogous
#FFB897 #FFEC97 #DEFF97
triadic
#FFEC97 #97FFEC #EC97FF
tetradic
#FFEC97 #97FFB8 #97AAFF #FF97DE
square
#FFEC97 #97FFB8 #97AAFF #FF97DE
split-complementary
#FFEC97 #97DEFF #B897FF
monochromatic
#FFD61D #FFE15A #FFEC97 #FFF7D4 #FFF9E0

Accessibility & contrast

On white

1.19
#FFEC97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.70
#FFEC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC97
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC97#FFFFFF#000000##000000
##FFEC971.001.1917.7017.70
#FFFFFF1.191.0021.0021.00
#00000017.7021.001.001.00
##00000017.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE891
Deuteranopia (green-blind)
#FFEE9A
Tritanopia (blue-blind)
#FFE0D7
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #ffec97;
/* rgb */ color: rgb(255, 236, 151);
/* oklch */ color: oklch(94.0% 0.107 97.1);
Tailwind
colors: {
  custom: {
    50: '#fff2b6',
    500: '#ffec97',
    950: '#000000',
  },
}
SCSS
$custom: #ffec97;
$custom-light: #fff2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec97",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 151
  },
  "hsl": {
    "h": 49.038,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.93989,
    "c": 0.10702,
    "h": 97.1
  },
  "luminance": 0.83485
}

Semantic roles & 50–950 ramp

primary
#FFEC97
secondary
#5972E2
accent
#2AE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFEC97

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

Preview Lab → · Contrast checker → · Palette generator →

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