#FEF875#FEF875

#FEF875 is a very light, vivid yellow. Relative luminance 0.895; OKLCH L 95.9% C 0.152 H 106.5°. Best body text is #000000 at 18.90:1 contrast (WCAG AA passes).

Color values

HEX#FEF875
RGBrgb(254, 248, 117)
HSLhsl(57, 99%, 73%)
HSVhsv(57, 54%, 100%)
CMYKcmyk(0%, 2.4%, 53.9%, 0.4%)
CIE-LABlab(95.79, -14.41, 62.58)
CIE-LCHlch(95.79, 64.22, 102.97°)
OKLaboklab(95.87% -0.0433 0.1459)
OKLCHoklch(95.87% 0.152 106.5)
XYZxyz(77.6536, 89.4923, 30.0094)
Luminance0.8949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF875 #757BFE
analogous
#FEB375 #FEF875 #C0FE75
triadic
#FEF875 #75FEF8 #F875FE
tetradic
#FEF875 #75FEB3 #757BFE #FE75C0
square
#FEF875 #75FEB3 #757BFE #FE75C0
split-complementary
#FEF875 #75C0FE #B375FE
monochromatic
#F7EC02 #FEF538 #FEF875 #FEFBB2 #FFFDE1

Accessibility & contrast

On white

1.11
#FEF875 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.90
#FEF875 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF875
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF875#FFFFFF#000000##000000
##FEF8751.001.1118.9018.90
#FFFFFF1.111.0021.0021.00
#00000018.9021.001.001.00
##00000018.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF068
Deuteranopia (green-blind)
#FFF57C
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef875;
/* rgb */ color: rgb(254, 248, 117);
/* oklch */ color: oklch(95.9% 0.152 106.5);
Tailwind
colors: {
  custom: {
    50: '#fffaa0',
    500: '#fef875',
    950: '#000000',
  },
}
SCSS
$custom: #fef875;
$custom-light: #fffaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef875",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 117
  },
  "hsl": {
    "h": 57.372,
    "s": 98.561,
    "l": 72.745
  },
  "oklch": {
    "l": 0.95868,
    "c": 0.15214,
    "h": 106.5
  },
  "luminance": 0.8949
}

Semantic roles & 50–950 ramp

primary
#FEF875
secondary
#3C43DB
accent
#0AE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF875

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

Preview Lab → · Contrast checker → · Palette generator →

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