#F8F173#F8F173

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

Color values

HEX#F8F173
RGBrgb(248, 241, 115)
HSLhsl(57, 90%, 71%)
HSVhsv(57, 54%, 97%)
CMYKcmyk(0%, 2.8%, 53.6%, 2.7%)
CIE-LABlab(93.50, -13.53, 60.72)
CIE-LCHlch(93.50, 62.20, 102.56°)
OKLaboklab(93.93% -0.0406 0.1417)
OKLCHoklch(93.93% 0.147 106)
XYZxyz(73.2633, 84.1071, 28.5914)
Luminance0.8410 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F173 #737AF8
analogous
#F8AE73 #F8F173 #BCF873
triadic
#F8F173 #73F8F1 #F173F8
tetradic
#F8F173 #73F8AE #737AF8 #F873BC
square
#F8F173 #73F8AE #737AF8 #F873BC
split-complementary
#F8F173 #73BCF8 #AE73F8
monochromatic
#E5DA0B #F5EB39 #F8F173 #FBF7AD #FEFCE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8F173#FFFFFF#000000##000000
##F8F1731.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)
#FFE967
Deuteranopia (green-blind)
#FFEF79
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8f173;
/* rgb */ color: rgb(248, 241, 115);
/* oklch */ color: oklch(93.9% 0.147 106.0);
Tailwind
colors: {
  custom: {
    50: '#fdf59f',
    500: '#f8f173',
    950: '#000000',
  },
}
SCSS
$custom: #f8f173;
$custom-light: #fdf59f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f173",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 115
  },
  "hsl": {
    "h": 56.842,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.93926,
    "c": 0.14745,
    "h": 106
  },
  "luminance": 0.84105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F173

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

Preview Lab → · Contrast checker → · Palette generator →

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