#FEF271#FEF271

#FEF271 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.6% C 0.150 H 104.0°. Best body text is #000000 at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#FEF271
RGBrgb(254, 242, 113)
HSLhsl(55, 99%, 72%)
HSVhsv(55, 56%, 100%)
CMYKcmyk(0%, 4.7%, 55.5%, 0.4%)
CIE-LABlab(94.21, -11.78, 62.55)
CIE-LCHlch(94.21, 63.65, 100.66°)
OKLaboklab(94.61% -0.0362 0.1454)
OKLCHoklch(94.61% 0.15 104)
XYZxyz(75.6083, 85.7699, 28.1921)
Luminance0.8577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF271 #717DFE
analogous
#FEAC71 #FEF271 #C3FE71
triadic
#FEF271 #71FEF2 #F271FE
tetradic
#FEF271 #71FEAC #717DFE #FE71C3
square
#FEF271 #71FEAC #717DFE #FE71C3
split-complementary
#FEF271 #71C3FE #AC71FE
monochromatic
#F3DE02 #FEEC34 #FEF271 #FEF8AE #FFFCE1

Accessibility & contrast

On white

1.16
#FEF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.15
#FEF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF271
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF271#FFFFFF#000000##000000
##FEF2711.001.1618.1518.15
#FFFFFF1.161.0021.0021.00
#00000018.1521.001.001.00
##00000018.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB64
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef271;
/* rgb */ color: rgb(254, 242, 113);
/* oklch */ color: oklch(94.6% 0.150 104.0);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fef271',
    950: '#000000',
  },
}
SCSS
$custom: #fef271;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef271",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 54.894,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.94606,
    "c": 0.1498,
    "h": 104
  },
  "luminance": 0.85767
}

Semantic roles & 50–950 ramp

primary
#FEF271
secondary
#3946DB
accent
#14E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF271

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

Preview Lab → · Contrast checker → · Palette generator →

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