#FEF86F#FEF86F

#FEF86F is a very light, vivid yellow. Relative luminance 0.894; OKLCH L 95.8% C 0.157 H 106.7°. Best body text is #000000 at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#FEF86F
RGBrgb(254, 248, 111)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 56%, 100%)
CMYKcmyk(0%, 2.4%, 56.3%, 0.4%)
CIE-LABlab(95.73, -14.85, 65.13)
CIE-LCHlch(95.73, 66.81, 102.85°)
OKLaboklab(95.81% -0.0452 0.1507)
OKLCHoklch(95.81% 0.157 106.7)
XYZxyz(77.3120, 89.3557, 28.2107)
Luminance0.8935 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF86F #6F75FE
analogous
#FEB16F #FEF86F #BCFE6F
triadic
#FEF86F #6FFEF8 #F86FFE
tetradic
#FEF86F #6FFEB1 #6F75FE #FE6FBC
square
#FEF86F #6FFEB1 #6F75FE #FE6FBC
split-complementary
#FEF86F #6FBCFE #B16FFE
monochromatic
#F1E702 #FEF532 #FEF86F #FEFBAC #FFFEE1

Accessibility & contrast

On white

1.11
#FEF86F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.87
#FEF86F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF86F
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF86F#FFFFFF#000000##000000
##FEF86F1.001.1118.8718.87
#FFFFFF1.111.0021.0021.00
#00000018.8721.001.001.00
##00000018.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF060
Deuteranopia (green-blind)
#FFF576
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef86f;
/* rgb */ color: rgb(254, 248, 111);
/* oklch */ color: oklch(95.8% 0.157 106.7);
Tailwind
colors: {
  custom: {
    50: '#fffa9d',
    500: '#fef86f',
    950: '#000000',
  },
}
SCSS
$custom: #fef86f;
$custom-light: #fffa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#fef86f",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 111
  },
  "hsl": {
    "h": 57.483,
    "s": 98.621,
    "l": 71.569
  },
  "oklch": {
    "l": 0.95805,
    "c": 0.1573,
    "h": 106.7
  },
  "luminance": 0.89353
}

Semantic roles & 50–950 ramp

primary
#FEF86F
secondary
#373EDA
accent
#0AE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF86F

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

Preview Lab → · Contrast checker → · Palette generator →

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