#FFEC8B#FFEC8B

#FFEC8B is a very light, moderate yellow. Relative luminance 0.831; OKLCH L 93.8% C 0.120 H 98.5°. Best body text is #000000 at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#FFEC8B
RGBrgb(255, 236, 139)
HSLhsl(50, 100%, 77%)
HSVhsv(50, 45%, 100%)
CMYKcmyk(0%, 7.5%, 45.5%, 0%)
CIE-LABlab(93.07, -6.24, 49.15)
CIE-LCHlch(93.07, 49.55, 97.23°)
OKLaboklab(93.81% -0.0177 0.1183)
OKLCHoklch(93.81% 0.12 98.5)
XYZxyz(75.8977, 83.1176, 36.4664)
Luminance0.8312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFEC8B #8B9EFF
analogous
#FFB28B #FFEC8B #D8FF8B
triadic
#FFEC8B #8BFFEC #EC8BFF
tetradic
#FFEC8B #8BFFB2 #8B9EFF #FF8BD8
square
#FFEC8B #8BFFB2 #8B9EFF #FF8BD8
split-complementary
#FFEC8B #8BD8FF #B28BFF
monochromatic
#FFD811 #FFE24E #FFEC8B #FFF6C8 #FFFAE0

Accessibility & contrast

On white

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

On black

17.62
#FFEC8B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFEC8B
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFEC8B#FFFFFF#000000##000000
##FFEC8B1.001.1917.6217.62
#FFFFFF1.191.0021.0021.00
#00000017.6221.001.001.00
##00000017.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE783
Deuteranopia (green-blind)
#FFEE8F
Tritanopia (blue-blind)
#FFDFD5
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #ffec8b;
/* rgb */ color: rgb(255, 236, 139);
/* oklch */ color: oklch(93.8% 0.120 98.5);
Tailwind
colors: {
  custom: {
    50: '#fff2ae',
    500: '#ffec8b',
    950: '#000000',
  },
}
SCSS
$custom: #ffec8b;
$custom-light: #fff2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ffec8b",
  "rgb": {
    "r": 255,
    "g": 236,
    "b": 139
  },
  "hsl": {
    "h": 50.172,
    "s": 100,
    "l": 77.255
  },
  "oklch": {
    "l": 0.93809,
    "c": 0.11961,
    "h": 98.5
  },
  "luminance": 0.83115
}

Semantic roles & 50–950 ramp

primary
#FFEC8B
secondary
#4E66E0
accent
#26E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181610
muted
#868581

Preview Lab

Preview with #FFEC8B

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

Preview Lab → · Contrast checker → · Palette generator →

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