#F8F172#F8F172

#F8F172 is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 93.9% C 0.148 H 106.0°. Best body text is #000000 at 17.82:1 contrast (WCAG AA passes).

Color values

HEX#F8F172
RGBrgb(248, 241, 114)
HSLhsl(57, 91%, 71%)
HSVhsv(57, 54%, 97%)
CMYKcmyk(0%, 2.8%, 54%, 2.7%)
CIE-LABlab(93.49, -13.60, 61.15)
CIE-LCHlch(93.49, 62.64, 102.54°)
OKLaboklab(93.92% -0.041 0.1426)
OKLCHoklch(93.92% 0.148 106)
XYZxyz(73.2061, 84.0842, 28.2900)
Luminance0.8408 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F172 #7279F8
analogous
#F8AE72 #F8F172 #BCF872
triadic
#F8F172 #72F8F1 #F172F8
tetradic
#F8F172 #72F8AE #7279F8 #F872BC
square
#F8F172 #72F8AE #7279F8 #F872BC
split-complementary
#F8F172 #72BCF8 #AE72F8
monochromatic
#E4D90B #F5EB38 #F8F172 #FBF7AC #FEFCE2

Accessibility & contrast

On white

1.18
#F8F172 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.82
#F8F172 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F172
17.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F172#FFFFFF#000000##000000
##F8F1721.001.1817.8217.82
#FFFFFF1.181.0021.0021.00
#00000017.8221.001.001.00
##00000017.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FFEF79
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8f172;
/* rgb */ color: rgb(248, 241, 114);
/* oklch */ color: oklch(93.9% 0.148 106.0);
Tailwind
colors: {
  custom: {
    50: '#fdf59e',
    500: '#f8f172',
    950: '#000000',
  },
}
SCSS
$custom: #f8f172;
$custom-light: #fdf59e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f172",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 114
  },
  "hsl": {
    "h": 56.866,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.93915,
    "c": 0.14834,
    "h": 106
  },
  "luminance": 0.84082
}

Semantic roles & 50–950 ramp

primary
#F8F172
secondary
#3B43D3
accent
#0CE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F172

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

Preview Lab → · Contrast checker → · Palette generator →

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