#F8E786#F8E786

#F8E786 is a very light, moderate yellow. Relative luminance 0.788; OKLCH L 92.1% C 0.120 H 99.6°. Best body text is #000000 at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#F8E786
RGBrgb(248, 231, 134)
HSLhsl(51, 89%, 75%)
HSVhsv(51, 46%, 97%)
CMYKcmyk(0%, 6.9%, 46%, 2.7%)
CIE-LABlab(91.16, -6.96, 49.08)
CIE-LCHlch(91.16, 49.57, 98.07°)
OKLaboklab(92.14% -0.0199 0.1179)
OKLCHoklch(92.14% 0.12 99.6)
XYZxyz(71.5923, 78.8319, 33.9945)
Luminance0.7883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E786 #8697F8
analogous
#F8AE86 #F8E786 #D0F886
triadic
#F8E786 #86F8E7 #E786F8
tetradic
#F8E786 #86F8AE #8697F8 #F886D0
square
#F8E786 #86F8AE #8697F8 #F886D0
split-complementary
#F8E786 #86D0F8 #AE86F8
monochromatic
#F1D012 #F5DC4C #F8E786 #FBF2C0 #FDF9E2

Accessibility & contrast

On white

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

On black

16.77
#F8E786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E786
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E786#FFFFFF#000000##000000
##F8E7861.001.2516.7716.77
#FFFFFF1.251.0021.0021.00
#00000016.7721.001.001.00
##00000016.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E27E
Deuteranopia (green-blind)
#FDE98A
Tritanopia (blue-blind)
#FFDBD0
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f8e786;
/* rgb */ color: rgb(248, 231, 134);
/* oklch */ color: oklch(92.1% 0.120 99.6);
Tailwind
colors: {
  custom: {
    50: '#fceeab',
    500: '#f8e786',
    950: '#000000',
  },
}
SCSS
$custom: #f8e786;
$custom-light: #fceeab;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e786",
  "rgb": {
    "r": 248,
    "g": 231,
    "b": 134
  },
  "hsl": {
    "h": 51.053,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.92138,
    "c": 0.11953,
    "h": 99.6
  },
  "luminance": 0.7883
}

Semantic roles & 50–950 ramp

primary
#F8E786
secondary
#4D61D6
accent
#22E600
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#181610
muted
#868481

Preview Lab

Preview with #F8E786

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

Preview Lab → · Contrast checker → · Palette generator →

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