#F8E487#F8E487

#F8E487 is a very light, moderate yellow. Relative luminance 0.772; OKLCH L 91.6% C 0.116 H 97.5°. Best body text is #000000 at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#F8E487
RGBrgb(248, 228, 135)
HSLhsl(49, 89%, 75%)
HSVhsv(49, 46%, 97%)
CMYKcmyk(0%, 8.1%, 45.6%, 2.7%)
CIE-LABlab(90.41, -5.36, 47.67)
CIE-LCHlch(90.41, 47.97, 96.41°)
OKLaboklab(91.55% -0.0152 0.1148)
OKLCHoklch(91.55% 0.116 97.5)
XYZxyz(70.8299, 77.1951, 34.0861)
Luminance0.7719 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E487 #879BF8
analogous
#F8AC87 #F8E487 #D3F887
triadic
#F8E487 #87F8E4 #E487F8
tetradic
#F8E487 #87F8AC #879BF8 #F887D3
square
#F8E487 #87F8AC #879BF8 #F887D3
split-complementary
#F8E487 #87D3F8 #AC87F8
monochromatic
#F1CA13 #F5D74D #F8E487 #FBF1C1 #FDF8E2

Accessibility & contrast

On white

1.28
#F8E487 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.44
#F8E487 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E487
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E487#FFFFFF#000000##000000
##F8E4871.001.2816.4416.44
#FFFFFF1.281.0021.0021.00
#00000016.4421.001.001.00
##00000016.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DF7F
Deuteranopia (green-blind)
#FAE78B
Tritanopia (blue-blind)
#FFD8CE
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f8e487;
/* rgb */ color: rgb(248, 228, 135);
/* oklch */ color: oklch(91.6% 0.116 97.5);
Tailwind
colors: {
  custom: {
    50: '#fcecab',
    500: '#f8e487',
    950: '#000000',
  },
}
SCSS
$custom: #f8e487;
$custom-light: #fcecab;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e487",
  "rgb": {
    "r": 248,
    "g": 228,
    "b": 135
  },
  "hsl": {
    "h": 49.381,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.91551,
    "c": 0.11579,
    "h": 97.5
  },
  "luminance": 0.77193
}

Semantic roles & 50–950 ramp

primary
#F8E487
secondary
#4D66D6
accent
#29E600
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#181610
muted
#868481

Preview Lab

Preview with #F8E487

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

Preview Lab → · Contrast checker → · Palette generator →

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