#F8E170#F8E170

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

Color values

HEX#F8E170
RGBrgb(248, 225, 112)
HSLhsl(50, 91%, 71%)
HSVhsv(50, 55%, 97%)
CMYKcmyk(0%, 9.3%, 54.8%, 2.7%)
CIE-LABlab(89.38, -5.82, 57.32)
CIE-LCHlch(89.38, 57.61, 95.79°)
OKLaboklab(90.65% -0.0188 0.1341)
OKLCHoklch(90.65% 0.135 98)
XYZxyz(68.5637, 74.9796, 26.1870)
Luminance0.7498 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E170 #7087F8
analogous
#F89D70 #F8E170 #CBF870
triadic
#F8E170 #70F8E1 #E170F8
tetradic
#F8E170 #70F89D #7087F8 #F870CB
square
#F8E170 #70F89D #7087F8 #F870CB
split-complementary
#F8E170 #70CBF8 #9D70F8
monochromatic
#E3BE0B #F5D536 #F8E170 #FBEDAA #FEF9E2

Accessibility & contrast

On white

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

On black

16.00
#F8E170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E170
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E170#FFFFFF#000000##000000
##F8E1701.001.3116.0016.00
#FFFFFF1.311.0021.0021.00
#00000016.0021.001.001.00
##00000016.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4DC65
Deuteranopia (green-blind)
#FAE475
Tritanopia (blue-blind)
#FFD3C7
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e170;
/* rgb */ color: rgb(248, 225, 112);
/* oklch */ color: oklch(90.7% 0.135 98.0);
Tailwind
colors: {
  custom: {
    50: '#fdea9c',
    500: '#f8e170',
    950: '#000000',
  },
}
SCSS
$custom: #f8e170;
$custom-light: #fdea9c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e170",
  "rgb": {
    "r": 248,
    "g": 225,
    "b": 112
  },
  "hsl": {
    "h": 49.853,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.90651,
    "c": 0.13542,
    "h": 98
  },
  "luminance": 0.74977
}

Semantic roles & 50–950 ramp

primary
#F8E170
secondary
#3953D3
accent
#27E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E170

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

Preview Lab → · Contrast checker → · Palette generator →

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