#F8F586#F8F586

#F8F586 is a very light, vivid yellow. Relative luminance 0.870; OKLCH L 95.0% C 0.134 H 107.3°. Best body text is #000000 at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#F8F586
RGBrgb(248, 245, 134)
HSLhsl(58, 89%, 75%)
HSVhsv(58, 46%, 97%)
CMYKcmyk(0%, 1.2%, 46%, 2.7%)
CIE-LABlab(94.73, -13.88, 53.45)
CIE-LCHlch(94.73, 55.23, 104.56°)
OKLaboklab(94.98% -0.0398 0.1276)
OKLCHoklch(94.98% 0.134 107.3)
XYZxyz(75.6685, 86.9844, 35.3533)
Luminance0.8698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F586 #8689F8
analogous
#F8BC86 #F8F586 #C2F886
triadic
#F8F586 #86F8F5 #F586F8
tetradic
#F8F586 #86F8BC #8689F8 #F886C2
square
#F8F586 #86F8BC #8689F8 #F886C2
split-complementary
#F8F586 #86C2F8 #BC86F8
monochromatic
#F1EB12 #F5F04C #F8F586 #FBFAC0 #FDFDE2

Accessibility & contrast

On white

1.14
#F8F586 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.40
#F8F586 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F586
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F586#FFFFFF#000000##000000
##F8F5861.001.1418.4018.40
#FFFFFF1.141.0021.0021.00
#00000018.4021.001.001.00
##00000018.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED7C
Deuteranopia (green-blind)
#FFF28B
Tritanopia (blue-blind)
#FFE9DB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f8f586;
/* rgb */ color: rgb(248, 245, 134);
/* oklch */ color: oklch(95.0% 0.134 107.3);
Tailwind
colors: {
  custom: {
    50: '#fcf8ab',
    500: '#f8f586',
    950: '#000000',
  },
}
SCSS
$custom: #f8f586;
$custom-light: #fcf8ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f586",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 134
  },
  "hsl": {
    "h": 58.421,
    "s": 89.063,
    "l": 74.902
  },
  "oklch": {
    "l": 0.94975,
    "c": 0.13364,
    "h": 107.3
  },
  "luminance": 0.86983
}

Semantic roles & 50–950 ramp

primary
#F8F586
secondary
#4D50D6
accent
#06E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F586

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

Preview Lab → · Contrast checker → · Palette generator →

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