#F8F372#F8F372

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

Color values

HEX#F8F372
RGBrgb(248, 243, 114)
HSLhsl(58, 91%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 2%, 54%, 2.7%)
CIE-LABlab(94.00, -14.58, 61.74)
CIE-LCHlch(94.00, 63.44, 103.29°)
OKLaboklab(94.32% -0.0437 0.1438)
OKLCHoklch(94.32% 0.15 106.9)
XYZxyz(73.8014, 85.2747, 28.4884)
Luminance0.8527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F372 #7277F8
analogous
#F8B072 #F8F372 #BAF872
triadic
#F8F372 #72F8F3 #F372F8
tetradic
#F8F372 #72F8B0 #7277F8 #F872BA
square
#F8F372 #72F8B0 #7277F8 #F872BA
split-complementary
#F8F372 #72BAF8 #B072F8
monochromatic
#E4DC0B #F5EE38 #F8F372 #FBF8AC #FEFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8F372#FFFFFF#000000##000000
##F8F3721.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)
#FFEB65
Deuteranopia (green-blind)
#FFF079
Tritanopia (blue-blind)
#FFE5D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f372;
/* rgb */ color: rgb(248, 243, 114);
/* oklch */ color: oklch(94.3% 0.150 106.9);
Tailwind
colors: {
  custom: {
    50: '#fdf69e',
    500: '#f8f372',
    950: '#000000',
  },
}
SCSS
$custom: #f8f372;
$custom-light: #fdf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f372",
  "rgb": {
    "r": 248,
    "g": 243,
    "b": 114
  },
  "hsl": {
    "h": 57.761,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.94324,
    "c": 0.15035,
    "h": 106.9
  },
  "luminance": 0.85273
}

Semantic roles & 50–950 ramp

primary
#F8F372
secondary
#3B41D3
accent
#09E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F372

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

Preview Lab → · Contrast checker → · Palette generator →

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