#F8F371#F8F371

#F8F371 is a very light, vivid yellow. Relative luminance 0.853; OKLCH L 94.3% C 0.151 H 106.9°. Best body text is #000000 at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#F8F371
RGBrgb(248, 243, 113)
HSLhsl(58, 91%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 2%, 54.4%, 2.7%)
CIE-LABlab(93.99, -14.66, 62.17)
CIE-LCHlch(93.99, 63.87, 103.26°)
OKLaboklab(94.31% -0.0441 0.1447)
OKLCHoklch(94.31% 0.151 106.9)
XYZxyz(73.7447, 85.2520, 28.1902)
Luminance0.8525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F371 #7176F8
analogous
#F8AF71 #F8F371 #B9F871
triadic
#F8F371 #71F8F3 #F371F8
tetradic
#F8F371 #71F8AF #7176F8 #F871B9
square
#F8F371 #71F8AF #7176F8 #F871B9
split-complementary
#F8F371 #71B9F8 #AF71F8
monochromatic
#E3DB0B #F5EE37 #F8F371 #FBF8AB #FEFDE2

Accessibility & contrast

On white

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

On black

18.05
#F8F371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F371
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F371#FFFFFF#000000##000000
##F8F3711.001.1618.0518.05
#FFFFFF1.161.0021.0021.00
#00000018.0521.001.001.00
##00000018.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB64
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f371;
/* rgb */ color: rgb(248, 243, 113);
/* oklch */ color: oklch(94.3% 0.151 106.9);
Tailwind
colors: {
  custom: {
    50: '#fdf69e',
    500: '#f8f371',
    950: '#000000',
  },
}
SCSS
$custom: #f8f371;
$custom-light: #fdf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f371",
  "rgb": {
    "r": 248,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 57.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94313,
    "c": 0.15122,
    "h": 106.9
  },
  "luminance": 0.8525
}

Semantic roles & 50–950 ramp

primary
#F8F371
secondary
#3A40D3
accent
#08E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F371

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

Preview Lab → · Contrast checker → · Palette generator →

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