#FEF381#FEF381

#FEF381 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 95.0% C 0.136 H 103.7°. Best body text is #000000 at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#FEF381
RGBrgb(254, 243, 129)
HSLhsl(55, 98%, 75%)
HSVhsv(55, 49%, 100%)
CMYKcmyk(0%, 4.3%, 49.2%, 0.4%)
CIE-LABlab(94.64, -11.00, 55.79)
CIE-LCHlch(94.64, 56.86, 101.15°)
OKLaboklab(94.99% -0.0323 0.1322)
OKLCHoklch(94.99% 0.136 103.7)
XYZxyz(76.8882, 86.7594, 33.4607)
Luminance0.8676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF381 #818CFE
analogous
#FEB481 #FEF381 #CAFE81
triadic
#FEF381 #81FEF3 #F381FE
tetradic
#FEF381 #81FEB4 #818CFE #FE81CA
square
#FEF381 #81FEB4 #818CFE #FE81CA
split-complementary
#FEF381 #81CAFE #B481FE
monochromatic
#FDE708 #FEED44 #FEF381 #FEF9BE #FFFCE1

Accessibility & contrast

On white

1.14
#FEF381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.35
#FEF381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF381
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF381#FFFFFF#000000##000000
##FEF3811.001.1418.3518.35
#FFFFFF1.141.0021.0021.00
#00000018.3521.001.001.00
##00000018.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC77
Deuteranopia (green-blind)
#FFF286
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef381;
/* rgb */ color: rgb(254, 243, 129);
/* oklch */ color: oklch(95.0% 0.136 103.7);
Tailwind
colors: {
  custom: {
    50: '#fff6a8',
    500: '#fef381',
    950: '#000000',
  },
}
SCSS
$custom: #fef381;
$custom-light: #fff6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#fef381",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 129
  },
  "hsl": {
    "h": 54.72,
    "s": 98.425,
    "l": 75.098
  },
  "oklch": {
    "l": 0.94995,
    "c": 0.13613,
    "h": 103.7
  },
  "luminance": 0.86757
}

Semantic roles & 50–950 ramp

primary
#FEF381
secondary
#4653DD
accent
#14E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF381

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

Preview Lab → · Contrast checker → · Palette generator →

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