#FEF671#FEF671

#FEF671 is a very light, vivid yellow. Relative luminance 0.882; OKLCH L 95.4% C 0.154 H 105.8°. Best body text is #000000 at 18.64:1 contrast (WCAG AA passes).

Color values

HEX#FEF671
RGBrgb(254, 246, 113)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 56%, 100%)
CMYKcmyk(0%, 3.1%, 55.5%, 0.4%)
CIE-LABlab(95.24, -13.73, 63.71)
CIE-LCHlch(95.24, 65.17, 102.17°)
OKLaboklab(95.42% -0.0418 0.1479)
OKLCHoklch(95.42% 0.154 105.8)
XYZxyz(76.8118, 88.1770, 28.5933)
Luminance0.8818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF671 #7179FE
analogous
#FEB071 #FEF671 #BFFE71
triadic
#FEF671 #71FEF6 #F671FE
tetradic
#FEF671 #71FEB0 #7179FE #FE71BF
square
#FEF671 #71FEB0 #7179FE #FE71BF
split-complementary
#FEF671 #71BFFE #B071FE
monochromatic
#F3E502 #FEF234 #FEF671 #FEFAAE #FFFDE1

Accessibility & contrast

On white

1.13
#FEF671 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.64
#FEF671 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF671
18.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF671#FFFFFF#000000##000000
##FEF6711.001.1318.6418.64
#FFFFFF1.131.0021.0021.00
#00000018.6421.001.001.00
##00000018.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE63
Deuteranopia (green-blind)
#FFF478
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef671;
/* rgb */ color: rgb(254, 246, 113);
/* oklch */ color: oklch(95.4% 0.154 105.8);
Tailwind
colors: {
  custom: {
    50: '#fff89e',
    500: '#fef671',
    950: '#000000',
  },
}
SCSS
$custom: #fef671;
$custom-light: #fff89e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef671",
  "rgb": {
    "r": 254,
    "g": 246,
    "b": 113
  },
  "hsl": {
    "h": 56.596,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.95418,
    "c": 0.15364,
    "h": 105.8
  },
  "luminance": 0.88175
}

Semantic roles & 50–950 ramp

primary
#FEF671
secondary
#3942DB
accent
#0DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF671

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

Preview Lab → · Contrast checker → · Palette generator →

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