#F8E173#F8E173

#F8E173 is a very light, vivid yellow. Relative luminance 0.750; OKLCH L 90.7% C 0.133 H 97.7°. Best body text is #000000 at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#F8E173
RGBrgb(248, 225, 115)
HSLhsl(50, 90%, 71%)
HSVhsv(50, 54%, 97%)
CMYKcmyk(0%, 9.3%, 53.6%, 2.7%)
CIE-LABlab(89.42, -5.58, 55.97)
CIE-LCHlch(89.42, 56.25, 95.70°)
OKLaboklab(90.69% -0.0178 0.1315)
OKLCHoklch(90.69% 0.133 97.7)
XYZxyz(68.7335, 75.0475, 27.0814)
Luminance0.7504 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E173 #738AF8
analogous
#F89E73 #F8E173 #CCF873
triadic
#F8E173 #73F8E1 #E173F8
tetradic
#F8E173 #73F89E #738AF8 #F873CC
square
#F8E173 #73F89E #738AF8 #F873CC
split-complementary
#F8E173 #73CCF8 #9E73F8
monochromatic
#E5BF0B #F5D539 #F8E173 #FBEDAD #FEF9E2

Accessibility & contrast

On white

1.31
#F8E173 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.01
#F8E173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E173
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E173#FFFFFF#000000##000000
##F8E1731.001.3116.0116.01
#FFFFFF1.311.0021.0021.00
#00000016.0121.001.001.00
##00000016.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC69
Deuteranopia (green-blind)
#FAE478
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e173;
/* rgb */ color: rgb(248, 225, 115);
/* oklch */ color: oklch(90.7% 0.133 97.7);
Tailwind
colors: {
  custom: {
    50: '#fdea9e',
    500: '#f8e173',
    950: '#000000',
  },
}
SCSS
$custom: #f8e173;
$custom-light: #fdea9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e173",
  "rgb": {
    "r": 248,
    "g": 225,
    "b": 115
  },
  "hsl": {
    "h": 49.624,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.90686,
    "c": 0.13269,
    "h": 97.7
  },
  "luminance": 0.75045
}

Semantic roles & 50–950 ramp

primary
#F8E173
secondary
#3C56D3
accent
#28E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E173

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

Preview Lab → · Contrast checker → · Palette generator →

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