#FEF173#FEF173

#FEF173 is a very light, vivid yellow. Relative luminance 0.852; OKLCH L 94.4% C 0.147 H 103.4°. Best body text is #000000 at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#FEF173
RGBrgb(254, 241, 115)
HSLhsl(54, 99%, 72%)
HSVhsv(54, 55%, 100%)
CMYKcmyk(0%, 5.1%, 54.7%, 0.4%)
CIE-LABlab(93.98, -11.14, 61.39)
CIE-LCHlch(93.98, 62.40, 100.28°)
OKLaboklab(94.43% -0.0342 0.1431)
OKLCHoklch(94.43% 0.147 103.4)
XYZxyz(75.4253, 85.2218, 28.6927)
Luminance0.8522 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF173 #7380FE
analogous
#FEAB73 #FEF173 #C6FE73
triadic
#FEF173 #73FEF1 #F173FE
tetradic
#FEF173 #73FEAB #7380FE #FE73C6
square
#FEF173 #73FEAB #7380FE #FE73C6
split-complementary
#FEF173 #73C6FE #AB73FE
monochromatic
#F5DE02 #FEEB36 #FEF173 #FEF7B0 #FFFCE1

Accessibility & contrast

On white

1.16
#FEF173 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.04
#FEF173 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF173
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF173#FFFFFF#000000##000000
##FEF1731.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA66
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef173;
/* rgb */ color: rgb(254, 241, 115);
/* oklch */ color: oklch(94.4% 0.147 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff59f',
    500: '#fef173',
    950: '#000000',
  },
}
SCSS
$custom: #fef173;
$custom-light: #fff59f;
$custom-dark: #000000;
JSON
{
  "hex": "#fef173",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 115
  },
  "hsl": {
    "h": 54.388,
    "s": 98.582,
    "l": 72.353
  },
  "oklch": {
    "l": 0.94425,
    "c": 0.14711,
    "h": 103.4
  },
  "luminance": 0.85219
}

Semantic roles & 50–950 ramp

primary
#FEF173
secondary
#3A49DB
accent
#15E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF173

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

Preview Lab → · Contrast checker → · Palette generator →

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