#FEF282#FEF282

#FEF282 is a very light, vivid yellow. Relative luminance 0.862; OKLCH L 94.8% C 0.134 H 103.2°. Best body text is #000000 at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#FEF282
RGBrgb(254, 242, 130)
HSLhsl(54, 98%, 75%)
HSVhsv(54, 49%, 100%)
CMYKcmyk(0%, 4.7%, 48.8%, 0.4%)
CIE-LABlab(94.39, -10.42, 55.03)
CIE-LCHlch(94.39, 56.01, 100.72°)
OKLaboklab(94.81% -0.0305 0.1307)
OKLCHoklch(94.81% 0.134 103.2)
XYZxyz(76.6565, 86.1892, 33.7130)
Luminance0.8619 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF282 #828EFE
analogous
#FEB482 #FEF282 #CCFE82
triadic
#FEF282 #82FEF2 #F282FE
tetradic
#FEF282 #82FEB4 #828EFE #FE82CC
square
#FEF282 #82FEB4 #828EFE #FE82CC
split-complementary
#FEF282 #82CCFE #B482FE
monochromatic
#FDE509 #FEEC45 #FEF282 #FEF8BF #FFFCE1

Accessibility & contrast

On white

1.15
#FEF282 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.24
#FEF282 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF282
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF282#FFFFFF#000000##000000
##FEF2821.001.1518.2418.24
#FFFFFF1.151.0021.0021.00
#00000018.2421.001.001.00
##00000018.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB78
Deuteranopia (green-blind)
#FFF287
Tritanopia (blue-blind)
#FFE5D8
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef282;
/* rgb */ color: rgb(254, 242, 130);
/* oklch */ color: oklch(94.8% 0.134 103.2);
Tailwind
colors: {
  custom: {
    50: '#fff6a9',
    500: '#fef282',
    950: '#000000',
  },
}
SCSS
$custom: #fef282;
$custom-light: #fff6a9;
$custom-dark: #000000;
JSON
{
  "hex": "#fef282",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 130
  },
  "hsl": {
    "h": 54.194,
    "s": 98.413,
    "l": 75.294
  },
  "oklch": {
    "l": 0.94806,
    "c": 0.13418,
    "h": 103.2
  },
  "luminance": 0.86187
}

Semantic roles & 50–950 ramp

primary
#FEF282
secondary
#4756DD
accent
#16E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF282

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

Preview Lab → · Contrast checker → · Palette generator →

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