#FEF387#FEF387

#FEF387 is a very light, vivid yellow. Relative luminance 0.869; OKLCH L 95.1% C 0.130 H 103.4°. Best body text is #000000 at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#FEF387
RGBrgb(254, 243, 135)
HSLhsl(54, 98%, 76%)
HSVhsv(54, 47%, 100%)
CMYKcmyk(0%, 4.3%, 46.9%, 0.4%)
CIE-LABlab(94.71, -10.47, 53.06)
CIE-LCHlch(94.71, 54.08, 101.16°)
OKLaboklab(95.07% -0.0302 0.1267)
OKLCHoklch(95.07% 0.13 103.4)
XYZxyz(77.2988, 86.9236, 35.6231)
Luminance0.8692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF387 #8792FE
analogous
#FEB887 #FEF387 #CEFE87
triadic
#FEF387 #87FEF3 #F387FE
tetradic
#FEF387 #87FEB8 #8792FE #FE87CE
square
#FEF387 #87FEB8 #8792FE #FE87CE
split-complementary
#FEF387 #87CEFE #B887FE
monochromatic
#FDE70E #FDED4A #FEF387 #FFF9C4 #FFFCE1

Accessibility & contrast

On white

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

On black

18.38
#FEF387 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF387
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF387#FFFFFF#000000##000000
##FEF3871.001.1418.3818.38
#FFFFFF1.141.0021.0021.00
#00000018.3821.001.001.00
##00000018.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC7E
Deuteranopia (green-blind)
#FFF28C
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef387;
/* rgb */ color: rgb(254, 243, 135);
/* oklch */ color: oklch(95.1% 0.130 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff6ac',
    500: '#fef387',
    950: '#000000',
  },
}
SCSS
$custom: #fef387;
$custom-light: #fff6ac;
$custom-dark: #000000;
JSON
{
  "hex": "#fef387",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 135
  },
  "hsl": {
    "h": 54.454,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.95073,
    "c": 0.13026,
    "h": 103.4
  },
  "luminance": 0.86921
}

Semantic roles & 50–950 ramp

primary
#FEF387
secondary
#4B59DE
accent
#15E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF387

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

Preview Lab → · Contrast checker → · Palette generator →

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