#FFEC9E#FFEC9E

#FFEC9E is a very light, moderate yellow. Relative luminance 0.837; OKLCH L 94.1% C 0.099 H 96.1°. Best body text is #000000 at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#FFEC9E
RGBrgb(255, 236, 158)
HSLhsl(48, 100%, 81%)
HSVhsv(48, 38%, 100%)
CMYKcmyk(0%, 7.5%, 38%, 0%)
CIE-LABlab(93.33, -4.32, 40.16)
CIE-LCHlch(93.33, 40.39, 96.13°)
OKLaboklab(94.1% -0.0106 0.0988)
OKLCHoklch(94.1% 0.099 96.1)
XYZxyz(77.4085, 83.7220, 44.4235)
Luminance0.8372 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC9E #9EB1FF
analogous
#FFBB9E #FFEC9E #E2FF9E
triadic
#FFEC9E #9EFFEC #EC9EFF
tetradic
#FFEC9E #9EFFBB #9EB1FF #FF9EE2
square
#FFEC9E #9EFFBB #9EB1FF #FF9EE2
split-complementary
#FFEC9E #9EE2FF #BB9EFF
monochromatic
#FFD424 #FFE061 #FFEC9E #FFF8DB #FFF9E0

Accessibility & contrast

On white

1.18
#FFEC9E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.74
#FFEC9E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC9E
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC9E#FFFFFF#000000##000000
##FFEC9E1.001.1817.7417.74
#FFFFFF1.181.0021.0021.00
#00000017.7421.001.001.00
##00000017.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE898
Deuteranopia (green-blind)
#FFEFA1
Tritanopia (blue-blind)
#FFE1D8
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #ffec9e;
/* rgb */ color: rgb(255, 236, 158);
/* oklch */ color: oklch(94.1% 0.099 96.1);
Tailwind
colors: {
  custom: {
    50: '#fff2bb',
    500: '#ffec9e',
    950: '#000000',
  },
}
SCSS
$custom: #ffec9e;
$custom-light: #fff2bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec9e",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 158
  },
  "hsl": {
    "h": 48.247,
    "s": 100,
    "l": 80.98
  },
  "oklch": {
    "l": 0.94103,
    "c": 0.0994,
    "h": 96.1
  },
  "luminance": 0.8372
}

Semantic roles & 50–950 ramp

primary
#FFEC9E
secondary
#5F78E3
accent
#2DE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181612
muted
#868582

Preview Lab

Preview with #FFEC9E

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

Preview Lab → · Contrast checker → · Palette generator →

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