#F8E481#F8E481

#F8E481 is a very light, vivid yellow. Relative luminance 0.770; OKLCH L 91.5% C 0.122 H 98.2°. Best body text is #000000 at 16.41:1 contrast (WCAG AA passes).

Color values

HEX#F8E481
RGBrgb(248, 228, 129)
HSLhsl(50, 89%, 74%)
HSVhsv(50, 48%, 97%)
CMYKcmyk(0%, 8.1%, 48%, 2.7%)
CIE-LABlab(90.34, -5.91, 50.47)
CIE-LCHlch(90.34, 50.82, 96.68°)
OKLaboklab(91.47% -0.0173 0.1206)
OKLCHoklch(91.47% 0.122 98.2)
XYZxyz(70.4193, 77.0308, 31.9237)
Luminance0.7703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E481 #8195F8
analogous
#F8A981 #F8E481 #D1F881
triadic
#F8E481 #81F8E4 #E481F8
tetradic
#F8E481 #81F8A9 #8195F8 #F881D1
square
#F8E481 #81F8A9 #8195F8 #F881D1
split-complementary
#F8E481 #81D1F8 #A981F8
monochromatic
#F1CB0D #F5D847 #F8E481 #FBF0BB #FDF9E2

Accessibility & contrast

On white

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

On black

16.41
#F8E481 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E481
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E481#FFFFFF#000000##000000
##F8E4811.001.2816.4116.41
#FFFFFF1.281.0021.0021.00
#00000016.4121.001.001.00
##00000016.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DF79
Deuteranopia (green-blind)
#FBE685
Tritanopia (blue-blind)
#FFD7CD
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f8e481;
/* rgb */ color: rgb(248, 228, 129);
/* oklch */ color: oklch(91.5% 0.122 98.2);
Tailwind
colors: {
  custom: {
    50: '#fdeca7',
    500: '#f8e481',
    950: '#000000',
  },
}
SCSS
$custom: #f8e481;
$custom-light: #fdeca7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e481",
  "rgb": {
    "r": 248,
    "g": 228,
    "b": 129
  },
  "hsl": {
    "h": 49.916,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.91467,
    "c": 0.12186,
    "h": 98.2
  },
  "luminance": 0.77028
}

Semantic roles & 50–950 ramp

primary
#F8E481
secondary
#4860D5
accent
#27E600
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#181610
muted
#868480

Preview Lab

Preview with #F8E481

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

Preview Lab → · Contrast checker → · Palette generator →

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