#FEF286#FEF286

#FEF286 is a very light, vivid yellow. Relative luminance 0.863; OKLCH L 94.9% C 0.130 H 102.9°. Best body text is #000000 at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#FEF286
RGBrgb(254, 242, 134)
HSLhsl(54, 98%, 76%)
HSVhsv(54, 47%, 100%)
CMYKcmyk(0%, 4.7%, 47.2%, 0.4%)
CIE-LABlab(94.44, -10.07, 53.21)
CIE-LCHlch(94.44, 54.15, 100.71°)
OKLaboklab(94.86% -0.0291 0.127)
OKLCHoklch(94.86% 0.13 102.9)
XYZxyz(76.9302, 86.2987, 35.1545)
Luminance0.8630 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF286 #8692FE
analogous
#FEB686 #FEF286 #CEFE86
triadic
#FEF286 #86FEF2 #F286FE
tetradic
#FEF286 #86FEB6 #8692FE #FE86CE
square
#FEF286 #86FEB6 #8692FE #FE86CE
split-complementary
#FEF286 #86CEFE #B686FE
monochromatic
#FDE50D #FDEB49 #FEF286 #FFF9C3 #FFFCE1

Accessibility & contrast

On white

1.15
#FEF286 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.26
#FEF286 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF286
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF286#FFFFFF#000000##000000
##FEF2861.001.1518.2618.26
#FFFFFF1.151.0021.0021.00
#00000018.2621.001.001.00
##00000018.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC7D
Deuteranopia (green-blind)
#FFF28B
Tritanopia (blue-blind)
#FFE5D9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef286;
/* rgb */ color: rgb(254, 242, 134);
/* oklch */ color: oklch(94.9% 0.130 102.9);
Tailwind
colors: {
  custom: {
    50: '#fff6ab',
    500: '#fef286',
    950: '#000000',
  },
}
SCSS
$custom: #fef286;
$custom-light: #fff6ab;
$custom-dark: #000000;
JSON
{
  "hex": "#fef286",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 134
  },
  "hsl": {
    "h": 54,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.94858,
    "c": 0.13026,
    "h": 102.9
  },
  "luminance": 0.86296
}

Semantic roles & 50–950 ramp

primary
#FEF286
secondary
#4A59DE
accent
#17E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF286

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

Preview Lab → · Contrast checker → · Palette generator →

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