#FEF38D#FEF38D

#FEF38D is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 95.2% C 0.124 H 103.1°. Best body text is #000000 at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#FEF38D
RGBrgb(254, 243, 141)
HSLhsl(54, 98%, 77%)
HSVhsv(54, 44%, 100%)
CMYKcmyk(0%, 4.3%, 44.5%, 0.4%)
CIE-LABlab(94.78, -9.91, 50.30)
CIE-LCHlch(94.78, 51.27, 101.15°)
OKLaboklab(95.16% -0.028 0.121)
OKLCHoklch(95.16% 0.124 103.1)
XYZxyz(77.7331, 87.0974, 37.9109)
Luminance0.8710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF38D #8D98FE
analogous
#FEBA8D #FEF38D #D1FE8D
triadic
#FEF38D #8DFEF3 #F38DFE
tetradic
#FEF38D #8DFEBA #8D98FE #FE8DD1
square
#FEF38D #8DFEBA #8D98FE #FE8DD1
split-complementary
#FEF38D #8DD1FE #BA8DFE
monochromatic
#FDE614 #FDED50 #FEF38D #FFF9CA #FFFCE1

Accessibility & contrast

On white

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

On black

18.42
#FEF38D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF38D
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF38D#FFFFFF#000000##000000
##FEF38D1.001.1418.4218.42
#FFFFFF1.141.0021.0021.00
#00000018.4221.001.001.00
##00000018.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED85
Deuteranopia (green-blind)
#FFF391
Tritanopia (blue-blind)
#FFE7DB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef38d;
/* rgb */ color: rgb(254, 243, 141);
/* oklch */ color: oklch(95.2% 0.124 103.1);
Tailwind
colors: {
  custom: {
    50: '#fff6b0',
    500: '#fef38d',
    950: '#000000',
  },
}
SCSS
$custom: #fef38d;
$custom-light: #fff6b0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef38d",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 141
  },
  "hsl": {
    "h": 54.159,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.95155,
    "c": 0.1242,
    "h": 103.1
  },
  "luminance": 0.87095
}

Semantic roles & 50–950 ramp

primary
#FEF38D
secondary
#505EDF
accent
#16E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #FEF38D

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

Preview Lab → · Contrast checker → · Palette generator →

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