#FEF47B#FEF47B

#FEF47B is a very light, vivid yellow. Relative luminance 0.872; OKLCH L 95.1% C 0.143 H 104.5°. Best body text is #000000 at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#FEF47B
RGBrgb(254, 244, 123)
HSLhsl(55, 98%, 74%)
HSVhsv(55, 52%, 100%)
CMYKcmyk(0%, 3.9%, 51.6%, 0.4%)
CIE-LABlab(94.83, -11.99, 58.77)
CIE-LCHlch(94.83, 59.98, 101.53°)
OKLaboklab(95.12% -0.0357 0.1382)
OKLCHoklch(95.12% 0.143 104.5)
XYZxyz(76.8011, 87.2047, 31.5216)
Luminance0.8720 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF47B #7B85FE
analogous
#FEB37B #FEF47B #C7FE7B
triadic
#FEF47B #7BFEF4 #F47BFE
tetradic
#FEF47B #7BFEB3 #7B85FE #FE7BC7
square
#FEF47B #7BFEB3 #7B85FE #FE7BC7
split-complementary
#FEF47B #7BC7FE #B37BFE
monochromatic
#FDEA02 #FEEF3E #FEF47B #FEF9B8 #FFFCE1

Accessibility & contrast

On white

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

On black

18.44
#FEF47B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF47B
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF47B#FFFFFF#000000##000000
##FEF47B1.001.1418.4418.44
#FFFFFF1.141.0021.0021.00
#00000018.4421.001.001.00
##00000018.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef47b;
/* rgb */ color: rgb(254, 244, 123);
/* oklch */ color: oklch(95.1% 0.143 104.5);
Tailwind
colors: {
  custom: {
    50: '#fff7a4',
    500: '#fef47b',
    950: '#000000',
  },
}
SCSS
$custom: #fef47b;
$custom-light: #fff7a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef47b",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 123
  },
  "hsl": {
    "h": 55.42,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.95124,
    "c": 0.14277,
    "h": 104.5
  },
  "luminance": 0.87202
}

Semantic roles & 50–950 ramp

primary
#FEF47B
secondary
#414DDC
accent
#12E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF47B

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

Preview Lab → · Contrast checker → · Palette generator →

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