#FFEC8F#FFEC8F

#FFEC8F is a very light, moderate yellow. Relative luminance 0.832; OKLCH L 93.9% C 0.115 H 98.1°. Best body text is #000000 at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#FFEC8F
RGBrgb(255, 236, 143)
HSLhsl(50, 100%, 78%)
HSVhsv(50, 44%, 100%)
CMYKcmyk(0%, 7.5%, 43.9%, 0%)
CIE-LABlab(93.12, -5.86, 47.28)
CIE-LCHlch(93.12, 47.64, 97.06°)
OKLaboklab(93.87% -0.0162 0.1143)
OKLCHoklch(93.87% 0.115 98.1)
XYZxyz(76.1953, 83.2367, 38.0339)
Luminance0.8323 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC8F #8FA2FF
analogous
#FFB48F #FFEC8F #DAFF8F
triadic
#FFEC8F #8FFFEC #EC8FFF
tetradic
#FFEC8F #8FFFB4 #8FA2FF #FF8FDA
square
#FFEC8F #8FFFB4 #8FA2FF #FF8FDA
split-complementary
#FFEC8F #8FDAFF #B48FFF
monochromatic
#FFD715 #FFE252 #FFEC8F #FFF6CC #FFFAE0

Accessibility & contrast

On white

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

On black

17.65
#FFEC8F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC8F
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC8F#FFFFFF#000000##000000
##FFEC8F1.001.1917.6517.65
#FFFFFF1.191.0021.0021.00
#00000017.6521.001.001.00
##00000017.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE788
Deuteranopia (green-blind)
#FFEE93
Tritanopia (blue-blind)
#FFE0D5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec8f;
/* rgb */ color: rgb(255, 236, 143);
/* oklch */ color: oklch(93.9% 0.115 98.1);
Tailwind
colors: {
  custom: {
    50: '#fff2b1',
    500: '#ffec8f',
    950: '#000000',
  },
}
SCSS
$custom: #ffec8f;
$custom-light: #fff2b1;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec8f",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 143
  },
  "hsl": {
    "h": 49.821,
    "s": 100,
    "l": 78.039
  },
  "oklch": {
    "l": 0.93867,
    "c": 0.11548,
    "h": 98.1
  },
  "luminance": 0.83234
}

Semantic roles & 50–950 ramp

primary
#FFEC8F
secondary
#526AE0
accent
#27E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFEC8F

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

Preview Lab → · Contrast checker → · Palette generator →

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