#FFEC9F#FFEC9F

#FFEC9F is a very light, moderate yellow. Relative luminance 0.838; OKLCH L 94.1% C 0.098 H 96.0°. Best body text is #000000 at 17.75:1 contrast (WCAG AA passes).

Color values

HEX#FFEC9F
RGBrgb(255, 236, 159)
HSLhsl(48, 100%, 81%)
HSVhsv(48, 38%, 100%)
CMYKcmyk(0%, 7.5%, 37.6%, 0%)
CIE-LABlab(93.34, -4.21, 39.68)
CIE-LCHlch(93.34, 39.91, 96.05°)
OKLaboklab(94.12% -0.0102 0.0978)
OKLCHoklch(94.12% 0.098 96)
XYZxyz(77.4949, 83.7565, 44.8786)
Luminance0.8375 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC9F #9FB2FF
analogous
#FFBC9F #FFEC9F #E2FF9F
triadic
#FFEC9F #9FFFEC #EC9FFF
tetradic
#FFEC9F #9FFFBC #9FB2FF #FF9FE2
square
#FFEC9F #9FFFBC #9FB2FF #FF9FE2
split-complementary
#FFEC9F #9FE2FF #BC9FFF
monochromatic
#FFD425 #FFE062 #FFEC9F #FFF8DC #FFF9E0

Accessibility & contrast

On white

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

On black

17.75
#FFEC9F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC9F
17.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC9F#FFFFFF#000000##000000
##FFEC9F1.001.1817.7517.75
#FFFFFF1.181.0021.0021.00
#00000017.7521.001.001.00
##00000017.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ffec9f;
/* rgb */ color: rgb(255, 236, 159);
/* oklch */ color: oklch(94.1% 0.098 96.0);
Tailwind
colors: {
  custom: {
    50: '#fff2bc',
    500: '#ffec9f',
    950: '#000000',
  },
}
SCSS
$custom: #ffec9f;
$custom-light: #fff2bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec9f",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 159
  },
  "hsl": {
    "h": 48.125,
    "s": 100,
    "l": 81.176
  },
  "oklch": {
    "l": 0.9412,
    "c": 0.0983,
    "h": 96
  },
  "luminance": 0.83754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FFEC9F

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

Preview Lab → · Contrast checker → · Palette generator →

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