#F8F181#F8F181

#F8F181 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 94.1% C 0.134 H 105.5°. Best body text is #000000 at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#F8F181
RGBrgb(248, 241, 129)
HSLhsl(56, 89%, 74%)
HSVhsv(56, 48%, 97%)
CMYKcmyk(0%, 2.8%, 48%, 2.7%)
CIE-LABlab(93.65, -12.37, 54.49)
CIE-LCHlch(93.65, 55.87, 102.79°)
OKLaboklab(94.09% -0.0359 0.1295)
OKLCHoklch(94.09% 0.134 105.5)
XYZxyz(74.1310, 84.4541, 33.1609)
Luminance0.8445 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F181 #8188F8
analogous
#F8B681 #F8F181 #C4F881
triadic
#F8F181 #81F8F1 #F181F8
tetradic
#F8F181 #81F8B6 #8188F8 #F881C4
square
#F8F181 #81F8B6 #8188F8 #F881C4
split-complementary
#F8F181 #81C4F8 #B681F8
monochromatic
#F1E40D #F5EB47 #F8F181 #FBF7BB #FDFCE2

Accessibility & contrast

On white

1.17
#F8F181 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.89
#F8F181 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F181
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F181#FFFFFF#000000##000000
##F8F1811.001.1717.8917.89
#FFFFFF1.171.0021.0021.00
#00000017.8921.001.001.00
##00000017.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA77
Deuteranopia (green-blind)
#FFEF86
Tritanopia (blue-blind)
#FFE4D7
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f181;
/* rgb */ color: rgb(248, 241, 129);
/* oklch */ color: oklch(94.1% 0.134 105.5);
Tailwind
colors: {
  custom: {
    50: '#fdf5a8',
    500: '#f8f181',
    950: '#000000',
  },
}
SCSS
$custom: #f8f181;
$custom-light: #fdf5a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f181",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 129
  },
  "hsl": {
    "h": 56.471,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.94094,
    "c": 0.13436,
    "h": 105.5
  },
  "luminance": 0.84452
}

Semantic roles & 50–950 ramp

primary
#F8F181
secondary
#4850D5
accent
#0DE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F181

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

Preview Lab → · Contrast checker → · Palette generator →

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