#F8E87B#F8E87B

#F8E87B is a very light, vivid yellow. Relative luminance 0.791; OKLCH L 92.2% C 0.131 H 101.1°. Best body text is #000000 at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#F8E87B
RGBrgb(248, 232, 123)
HSLhsl(52, 90%, 73%)
HSVhsv(52, 50%, 97%)
CMYKcmyk(0%, 6.5%, 50.4%, 2.7%)
CIE-LABlab(91.28, -8.43, 54.46)
CIE-LCHlch(91.28, 55.10, 98.80°)
OKLaboklab(92.19% -0.0252 0.1289)
OKLCHoklch(92.19% 0.131 101.1)
XYZxyz(71.1453, 79.1022, 30.2557)
Luminance0.7910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E87B #7B8BF8
analogous
#F8A97B #F8E87B #C9F87B
triadic
#F8E87B #7BF8E8 #E87BF8
tetradic
#F8E87B #7BF8A9 #7B8BF8 #F87BC9
square
#F8E87B #7BF8A9 #7B8BF8 #F87BC9
split-complementary
#F8E87B #7BC9F8 #A97BF8
monochromatic
#ECCF0D #F5DE41 #F8E87B #FBF2B5 #FDFAE2

Accessibility & contrast

On white

1.25
#F8E87B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.82
#F8E87B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E87B
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E87B#FFFFFF#000000##000000
##F8E87B1.001.2516.8216.82
#FFFFFF1.251.0021.0021.00
#00000016.8221.001.001.00
##00000016.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE271
Deuteranopia (green-blind)
#FEE980
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f8e87b;
/* rgb */ color: rgb(248, 232, 123);
/* oklch */ color: oklch(92.2% 0.131 101.1);
Tailwind
colors: {
  custom: {
    50: '#fdefa4',
    500: '#f8e87b',
    950: '#000000',
  },
}
SCSS
$custom: #f8e87b;
$custom-light: #fdefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e87b",
  "rgb": {
    "r": 248,
    "g": 232,
    "b": 123
  },
  "hsl": {
    "h": 52.32,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.92193,
    "c": 0.13135,
    "h": 101.1
  },
  "luminance": 0.791
}

Semantic roles & 50–950 ramp

primary
#F8E87B
secondary
#4356D4
accent
#1DE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E87B

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

Preview Lab → · Contrast checker → · Palette generator →

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