#F8F581#F8F581

#F8F581 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.9% C 0.139 H 107.4°. Best body text is #000000 at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#F8F581
RGBrgb(248, 245, 129)
HSLhsl(58, 89%, 74%)
HSVhsv(58, 48%, 97%)
CMYKcmyk(0%, 1.2%, 48%, 2.7%)
CIE-LABlab(94.67, -14.33, 55.72)
CIE-LCHlch(94.67, 57.53, 104.42°)
OKLaboklab(94.91% -0.0415 0.1322)
OKLCHoklch(94.91% 0.139 107.4)
XYZxyz(75.3280, 86.8482, 33.5599)
Luminance0.8685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F581 #8184F8
analogous
#F8BA81 #F8F581 #C0F881
triadic
#F8F581 #81F8F5 #F581F8
tetradic
#F8F581 #81F8BA #8184F8 #F881C0
square
#F8F581 #81F8BA #8184F8 #F881C0
split-complementary
#F8F581 #81C0F8 #BA81F8
monochromatic
#F1EB0D #F5F047 #F8F581 #FBFABB #FDFDE2

Accessibility & contrast

On white

1.14
#F8F581 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.37
#F8F581 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F581
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F581#FFFFFF#000000##000000
##F8F5811.001.1418.3718.37
#FFFFFF1.141.0021.0021.00
#00000018.3721.001.001.00
##00000018.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED77
Deuteranopia (green-blind)
#FFF287
Tritanopia (blue-blind)
#FFE8DA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f8f581;
/* rgb */ color: rgb(248, 245, 129);
/* oklch */ color: oklch(94.9% 0.139 107.4);
Tailwind
colors: {
  custom: {
    50: '#fdf8a8',
    500: '#f8f581',
    950: '#000000',
  },
}
SCSS
$custom: #f8f581;
$custom-light: #fdf8a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f581",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 129
  },
  "hsl": {
    "h": 58.487,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.9491,
    "c": 0.13855,
    "h": 107.4
  },
  "luminance": 0.86846
}

Semantic roles & 50–950 ramp

primary
#F8F581
secondary
#484CD5
accent
#06E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F581

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

Preview Lab → · Contrast checker → · Palette generator →

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