#FFEC9D#FFEC9D

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

Color values

HEX#FFEC9D
RGBrgb(255, 236, 157)
HSLhsl(48, 100%, 81%)
HSVhsv(48, 38%, 100%)
CMYKcmyk(0%, 7.5%, 38.4%, 0%)
CIE-LABlab(93.31, -4.42, 40.64)
CIE-LCHlch(93.31, 40.88, 96.21°)
OKLaboklab(94.09% -0.011 0.0999)
OKLCHoklch(94.09% 0.101 96.3)
XYZxyz(77.3228, 83.6877, 43.9720)
Luminance0.8368 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC9D #9DB0FF
analogous
#FFBB9D #FFEC9D #E1FF9D
triadic
#FFEC9D #9DFFEC #EC9DFF
tetradic
#FFEC9D #9DFFBB #9DB0FF #FF9DE1
square
#FFEC9D #9DFFBB #9DB0FF #FF9DE1
split-complementary
#FFEC9D #9DE1FF #BB9DFF
monochromatic
#FFD423 #FFE060 #FFEC9D #FFF8DA #FFF9E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FFEC9D#FFFFFF#000000##000000
##FFEC9D1.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)
#FBE897
Deuteranopia (green-blind)
#FFEFA0
Tritanopia (blue-blind)
#FFE1D8
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #ffec9d;
/* rgb */ color: rgb(255, 236, 157);
/* oklch */ color: oklch(94.1% 0.101 96.3);
Tailwind
colors: {
  custom: {
    50: '#fff2bb',
    500: '#ffec9d',
    950: '#000000',
  },
}
SCSS
$custom: #ffec9d;
$custom-light: #fff2bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec9d",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 157
  },
  "hsl": {
    "h": 48.367,
    "s": 100,
    "l": 80.784
  },
  "oklch": {
    "l": 0.94086,
    "c": 0.1005,
    "h": 96.3
  },
  "luminance": 0.83685
}

Semantic roles & 50–950 ramp

primary
#FFEC9D
secondary
#5E77E3
accent
#2CE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181612
muted
#868582

Preview Lab

Preview with #FFEC9D

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

Preview Lab → · Contrast checker → · Palette generator →

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