#F8E87C#F8E87C

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

Color values

HEX#F8E87C
RGBrgb(248, 232, 124)
HSLhsl(52, 90%, 73%)
HSVhsv(52, 50%, 97%)
CMYKcmyk(0%, 6.5%, 50%, 2.7%)
CIE-LABlab(91.29, -8.35, 54.00)
CIE-LCHlch(91.29, 54.64, 98.79°)
OKLaboklab(92.21% -0.0249 0.128)
OKLCHoklch(92.21% 0.13 101)
XYZxyz(71.2082, 79.1274, 30.5870)
Luminance0.7913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E87C #7C8CF8
analogous
#F8AA7C #F8E87C #CAF87C
triadic
#F8E87C #7CF8E8 #E87CF8
tetradic
#F8E87C #7CF8AA #7C8CF8 #F87CCA
square
#F8E87C #7CF8AA #7C8CF8 #F87CCA
split-complementary
#F8E87C #7CCAF8 #AA7CF8
monochromatic
#EDD00D #F5DE42 #F8E87C #FBF2B6 #FDFAE2

Accessibility & contrast

On white

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

On black

16.83
#F8E87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E87C
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E87C#FFFFFF#000000##000000
##F8E87C1.001.2516.8316.83
#FFFFFF1.251.0021.0021.00
#00000016.8321.001.001.00
##00000016.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8e87c;
/* rgb */ color: rgb(248, 232, 124);
/* oklch */ color: oklch(92.2% 0.130 101.0);
Tailwind
colors: {
  custom: {
    50: '#fdefa4',
    500: '#f8e87c',
    950: '#000000',
  },
}
SCSS
$custom: #f8e87c;
$custom-light: #fdefa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e87c",
  "rgb": {
    "r": 248,
    "g": 232,
    "b": 124
  },
  "hsl": {
    "h": 52.258,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.92205,
    "c": 0.13039,
    "h": 101
  },
  "luminance": 0.79125
}

Semantic roles & 50–950 ramp

primary
#F8E87C
secondary
#4456D4
accent
#1EE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F8E87C

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

Preview Lab → · Contrast checker → · Palette generator →

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