#F8F381#F8F381

#F8F381 is a very light, vivid yellow. Relative luminance 0.856; OKLCH L 94.5% C 0.136 H 106.5°. Best body text is #000000 at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#F8F381
RGBrgb(248, 243, 129)
HSLhsl(57, 89%, 74%)
HSVhsv(57, 48%, 97%)
CMYKcmyk(0%, 2%, 48%, 2.7%)
CIE-LABlab(94.16, -13.35, 55.10)
CIE-LCHlch(94.16, 56.70, 103.62°)
OKLaboklab(94.5% -0.0387 0.1308)
OKLCHoklch(94.5% 0.136 106.5)
XYZxyz(74.7262, 85.6446, 33.3593)
Luminance0.8564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F381 #8186F8
analogous
#F8B881 #F8F381 #C2F881
triadic
#F8F381 #81F8F3 #F381F8
tetradic
#F8F381 #81F8B8 #8186F8 #F881C2
square
#F8F381 #81F8B8 #8186F8 #F881C2
split-complementary
#F8F381 #81C2F8 #B881F8
monochromatic
#F1E80D #F5ED47 #F8F381 #FBF9BB #FDFCE2

Accessibility & contrast

On white

1.16
#F8F381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.13
#F8F381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F381
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F381#FFFFFF#000000##000000
##F8F3811.001.1618.1318.13
#FFFFFF1.161.0021.0021.00
#00000018.1321.001.001.00
##00000018.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB77
Deuteranopia (green-blind)
#FFF186
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f381;
/* rgb */ color: rgb(248, 243, 129);
/* oklch */ color: oklch(94.5% 0.136 106.5);
Tailwind
colors: {
  custom: {
    50: '#fdf6a8',
    500: '#f8f381',
    950: '#000000',
  },
}
SCSS
$custom: #f8f381;
$custom-light: #fdf6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f381",
  "rgb": {
    "r": 248,
    "g": 243,
    "b": 129
  },
  "hsl": {
    "h": 57.479,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.94502,
    "c": 0.13644,
    "h": 106.5
  },
  "luminance": 0.85643
}

Semantic roles & 50–950 ramp

primary
#F8F381
secondary
#484ED5
accent
#0AE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F381

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

Preview Lab → · Contrast checker → · Palette generator →

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