#FEF170#FEF170

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

Color values

HEX#FEF170
RGBrgb(254, 241, 112)
HSLhsl(55, 99%, 72%)
HSVhsv(55, 56%, 100%)
CMYKcmyk(0%, 5.1%, 55.9%, 0.4%)
CIE-LABlab(93.95, -11.36, 62.69)
CIE-LCHlch(93.95, 63.71, 100.27°)
OKLaboklab(94.39% -0.0351 0.1456)
OKLCHoklch(94.39% 0.15 103.6)
XYZxyz(75.2555, 85.1539, 27.7983)
Luminance0.8515 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF170 #707DFE
analogous
#FEAA70 #FEF170 #C4FE70
triadic
#FEF170 #70FEF1 #F170FE
tetradic
#FEF170 #70FEAA #707DFE #FE70C4
square
#FEF170 #70FEAA #707DFE #FE70C4
split-complementary
#FEF170 #70C4FE #AA70FE
monochromatic
#F2DC02 #FEEB33 #FEF170 #FEF7AD #FFFCE1

Accessibility & contrast

On white

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

On black

18.03
#FEF170 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF170
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF170#FFFFFF#000000##000000
##FEF1701.001.1618.0318.03
#FFFFFF1.161.0021.0021.00
#00000018.0321.001.001.00
##00000018.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef170;
/* rgb */ color: rgb(254, 241, 112);
/* oklch */ color: oklch(94.4% 0.150 103.6);
Tailwind
colors: {
  custom: {
    50: '#fff59d',
    500: '#fef170',
    950: '#000000',
  },
}
SCSS
$custom: #fef170;
$custom-light: #fff59d;
$custom-dark: #000000;
JSON
{
  "hex": "#fef170",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 112
  },
  "hsl": {
    "h": 54.507,
    "s": 98.611,
    "l": 71.765
  },
  "oklch": {
    "l": 0.94392,
    "c": 0.14972,
    "h": 103.6
  },
  "luminance": 0.85151
}

Semantic roles & 50–950 ramp

primary
#FEF170
secondary
#3847DA
accent
#15E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF170

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

Preview Lab → · Contrast checker → · Palette generator →

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