#FEF178#FEF178

#FEF178 is a very light, vivid yellow. Relative luminance 0.853; OKLCH L 94.5% C 0.143 H 103.2°. Best body text is #000000 at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#FEF178
RGBrgb(254, 241, 120)
HSLhsl(54, 99%, 73%)
HSVhsv(54, 53%, 100%)
CMYKcmyk(0%, 5.1%, 52.8%, 0.4%)
CIE-LABlab(94.03, -10.75, 59.20)
CIE-LCHlch(94.03, 60.17, 100.29°)
OKLaboklab(94.48% -0.0325 0.1389)
OKLCHoklch(94.48% 0.143 103.2)
XYZxyz(75.7208, 85.3400, 30.2493)
Luminance0.8534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF178 #7885FE
analogous
#FEAE78 #FEF178 #C8FE78
triadic
#FEF178 #78FEF1 #F178FE
tetradic
#FEF178 #78FEAE #7885FE #FE78C8
square
#FEF178 #78FEAE #7885FE #FE78C8
split-complementary
#FEF178 #78C8FE #AE78FE
monochromatic
#FAE202 #FEEB3B #FEF178 #FEF7B5 #FFFCE1

Accessibility & contrast

On white

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

On black

18.07
#FEF178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF178
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF178#FFFFFF#000000##000000
##FEF1781.001.1618.0718.07
#FFFFFF1.161.0021.0021.00
#00000018.0721.001.001.00
##00000018.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6C
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE3D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef178;
/* rgb */ color: rgb(254, 241, 120);
/* oklch */ color: oklch(94.5% 0.143 103.2);
Tailwind
colors: {
  custom: {
    50: '#fff5a2',
    500: '#fef178',
    950: '#000000',
  },
}
SCSS
$custom: #fef178;
$custom-light: #fff5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef178",
  "rgb": {
    "r": 254,
    "g": 241,
    "b": 120
  },
  "hsl": {
    "h": 54.179,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.94482,
    "c": 0.14263,
    "h": 103.2
  },
  "luminance": 0.85337
}

Semantic roles & 50–950 ramp

primary
#FEF178
secondary
#3F4EDC
accent
#16E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF178

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

Preview Lab → · Contrast checker → · Palette generator →

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