#F8E381#F8E381

#F8E381 is a very light, vivid yellow. Relative luminance 0.765; OKLCH L 91.3% C 0.121 H 97.5°. Best body text is #000000 at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#F8E381
RGBrgb(248, 227, 129)
HSLhsl(49, 89%, 74%)
HSVhsv(49, 48%, 97%)
CMYKcmyk(0%, 8.5%, 48%, 2.7%)
CIE-LABlab(90.08, -5.41, 50.16)
CIE-LCHlch(90.08, 50.45, 96.15°)
OKLaboklab(91.27% -0.0159 0.1199)
OKLCHoklch(91.27% 0.121 97.5)
XYZxyz(70.1450, 76.4822, 31.8323)
Luminance0.7648 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E381 #8196F8
analogous
#F8A881 #F8E381 #D2F881
triadic
#F8E381 #81F8E3 #E381F8
tetradic
#F8E381 #81F8A8 #8196F8 #F881D2
square
#F8E381 #81F8A8 #8196F8 #F881D2
split-complementary
#F8E381 #81D2F8 #A881F8
monochromatic
#F1C90D #F5D647 #F8E381 #FBF0BB #FDF9E2

Accessibility & contrast

On white

1.29
#F8E381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.30
#F8E381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E381
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E381#FFFFFF#000000##000000
##F8E3811.001.2916.3016.30
#FFFFFF1.291.0021.0021.00
#00000016.3021.001.001.00
##00000016.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DE79
Deuteranopia (green-blind)
#FAE685
Tritanopia (blue-blind)
#FFD6CC
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f8e381;
/* rgb */ color: rgb(248, 227, 129);
/* oklch */ color: oklch(91.3% 0.121 97.5);
Tailwind
colors: {
  custom: {
    50: '#fdeba7',
    500: '#f8e381',
    950: '#000000',
  },
}
SCSS
$custom: #f8e381;
$custom-light: #fdeba7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e381",
  "rgb": {
    "r": 248,
    "g": 227,
    "b": 129
  },
  "hsl": {
    "h": 49.412,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.91267,
    "c": 0.12098,
    "h": 97.5
  },
  "luminance": 0.7648
}

Semantic roles & 50–950 ramp

primary
#F8E381
secondary
#4861D5
accent
#28E600
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#181610
muted
#868480

Preview Lab

Preview with #F8E381

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

Preview Lab → · Contrast checker → · Palette generator →

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