#FEF672#FEF672

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

Color values

HEX#FEF672
RGBrgb(254, 246, 114)
HSLhsl(57, 99%, 72%)
HSVhsv(57, 55%, 100%)
CMYKcmyk(0%, 3.1%, 55.1%, 0.4%)
CIE-LABlab(95.25, -13.66, 63.28)
CIE-LCHlch(95.25, 64.74, 102.18°)
OKLaboklab(95.43% -0.0415 0.147)
OKLCHoklch(95.43% 0.153 105.8)
XYZxyz(76.8684, 88.1997, 28.8914)
Luminance0.8820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF672 #727AFE
analogous
#FEB072 #FEF672 #C0FE72
triadic
#FEF672 #72FEF6 #F672FE
tetradic
#FEF672 #72FEB0 #727AFE #FE72C0
square
#FEF672 #72FEB0 #727AFE #FE72C0
split-complementary
#FEF672 #72C0FE #B072FE
monochromatic
#F4E602 #FEF235 #FEF672 #FEFAAF #FFFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF672#FFFFFF#000000##000000
##FEF6721.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)
#FFEE65
Deuteranopia (green-blind)
#FFF479
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef672;
/* rgb */ color: rgb(254, 246, 114);
/* oklch */ color: oklch(95.4% 0.153 105.8);
Tailwind
colors: {
  custom: {
    50: '#fff89e',
    500: '#fef672',
    950: '#000000',
  },
}
SCSS
$custom: #fef672;
$custom-light: #fff89e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef672",
  "rgb": {
    "r": 254,
    "g": 246,
    "b": 114
  },
  "hsl": {
    "h": 56.571,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.95428,
    "c": 0.15278,
    "h": 105.8
  },
  "luminance": 0.88197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF672

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

Preview Lab → · Contrast checker → · Palette generator →

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