#F8F286#F8F286

#F8F286 is a very light, vivid yellow. Relative luminance 0.852; OKLCH L 94.4% C 0.130 H 105.8°. Best body text is #000000 at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#F8F286
RGBrgb(248, 242, 134)
HSLhsl(57, 89%, 75%)
HSVhsv(57, 46%, 97%)
CMYKcmyk(0%, 2.4%, 46%, 2.7%)
CIE-LABlab(93.96, -12.41, 52.52)
CIE-LCHlch(93.96, 53.96, 103.30°)
OKLaboklab(94.36% -0.0356 0.1255)
OKLCHoklch(94.36% 0.13 105.8)
XYZxyz(74.7683, 85.1840, 35.0532)
Luminance0.8518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F286 #868CF8
analogous
#F8B986 #F8F286 #C5F886
triadic
#F8F286 #86F8F2 #F286F8
tetradic
#F8F286 #86F8B9 #868CF8 #F886C5
square
#F8F286 #86F8B9 #868CF8 #F886C5
split-complementary
#F8F286 #86C5F8 #B986F8
monochromatic
#F1E612 #F5EC4C #F8F286 #FBF8C0 #FDFCE2

Accessibility & contrast

On white

1.16
#F8F286 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.04
#F8F286 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F286
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F286#FFFFFF#000000##000000
##F8F2861.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB7D
Deuteranopia (green-blind)
#FFF08B
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f286;
/* rgb */ color: rgb(248, 242, 134);
/* oklch */ color: oklch(94.4% 0.130 105.8);
Tailwind
colors: {
  custom: {
    50: '#fcf6ab',
    500: '#f8f286',
    950: '#000000',
  },
}
SCSS
$custom: #f8f286;
$custom-light: #fcf6ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f286",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 134
  },
  "hsl": {
    "h": 56.842,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.94363,
    "c": 0.13045,
    "h": 105.8
  },
  "luminance": 0.85182
}

Semantic roles & 50–950 ramp

primary
#F8F286
secondary
#4D54D6
accent
#0CE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F286

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

Preview Lab → · Contrast checker → · Palette generator →

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