#F8F873#F8F873

#F8F873 is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.4% C 0.155 H 109.0°. Best body text is #000000 at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#F8F873
RGBrgb(248, 248, 115)
HSLhsl(60, 90%, 71%)
HSVhsv(60, 54%, 97%)
CMYKcmyk(0%, 0%, 53.6%, 2.7%)
CIE-LABlab(95.30, -16.93, 62.78)
CIE-LCHlch(95.30, 65.03, 105.10°)
OKLaboklab(95.36% -0.0503 0.1462)
OKLCHoklch(95.36% 0.155 109)
XYZxyz(75.3753, 88.3310, 29.2953)
Luminance0.8833 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F873 #7373F8
analogous
#F8B573 #F8F873 #B5F873
triadic
#F8F873 #73F8F8 #F873F8
tetradic
#F8F873 #73F8B5 #7373F8 #F873B5
square
#F8F873 #73F8B5 #7373F8 #F873B5
split-complementary
#F8F873 #73B5F8 #B573F8
monochromatic
#E5E50B #F5F539 #F8F873 #FBFBAD #FEFEE2

Accessibility & contrast

On white

1.13
#F8F873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.67
#F8F873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F873
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F873#FFFFFF#000000##000000
##F8F8731.001.1318.6718.67
#FFFFFF1.131.0021.0021.00
#00000018.6721.001.001.00
##00000018.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF66
Deuteranopia (green-blind)
#FFF47A
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f8f873;
/* rgb */ color: rgb(248, 248, 115);
/* oklch */ color: oklch(95.4% 0.155 109.0);
Tailwind
colors: {
  custom: {
    50: '#fdfa9f',
    500: '#f8f873',
    950: '#000000',
  },
}
SCSS
$custom: #f8f873;
$custom-light: #fdfa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f873",
  "rgb": {
    "r": 248,
    "g": 248,
    "b": 115
  },
  "hsl": {
    "h": 60,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.95362,
    "c": 0.15461,
    "h": 109
  },
  "luminance": 0.88329
}

Semantic roles & 50–950 ramp

primary
#F8F873
secondary
#3C3CD3
accent
#00E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F873

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

Preview Lab → · Contrast checker → · Palette generator →

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