#FFEC9C#FFEC9C

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

Color values

HEX#FFEC9C
RGBrgb(255, 236, 156)
HSLhsl(48, 100%, 81%)
HSVhsv(48, 39%, 100%)
CMYKcmyk(0%, 7.5%, 38.8%, 0%)
CIE-LABlab(93.30, -4.53, 41.12)
CIE-LCHlch(93.30, 41.37, 96.29°)
OKLaboklab(94.07% -0.0113 0.101)
OKLCHoklch(94.07% 0.102 96.4)
XYZxyz(77.2378, 83.6537, 43.5242)
Luminance0.8365 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC9C #9CAFFF
analogous
#FFBA9C #FFEC9C #E0FF9C
triadic
#FFEC9C #9CFFEC #EC9CFF
tetradic
#FFEC9C #9CFFBA #9CAFFF #FF9CE0
square
#FFEC9C #9CFFBA #9CAFFF #FF9CE0
split-complementary
#FFEC9C #9CE0FF #BA9CFF
monochromatic
#FFD522 #FFE05F #FFEC9C #FFF8D9 #FFF9E0

Accessibility & contrast

On white

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

On black

17.73
#FFEC9C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC9C
17.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC9C#FFFFFF#000000##000000
##FFEC9C1.001.1817.7317.73
#FFFFFF1.181.0021.0021.00
#00000017.7321.001.001.00
##00000017.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ffec9c;
/* rgb */ color: rgb(255, 236, 156);
/* oklch */ color: oklch(94.1% 0.102 96.4);
Tailwind
colors: {
  custom: {
    50: '#fff2ba',
    500: '#ffec9c',
    950: '#000000',
  },
}
SCSS
$custom: #ffec9c;
$custom-light: #fff2ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec9c",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 156
  },
  "hsl": {
    "h": 48.485,
    "s": 100,
    "l": 80.588
  },
  "oklch": {
    "l": 0.9407,
    "c": 0.10159,
    "h": 96.4
  },
  "luminance": 0.83651
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FFEC9C

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

Preview Lab → · Contrast checker → · Palette generator →

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