#FFF271#FFF271

#FFF271 is a very light, vivid yellow. Relative luminance 0.860; OKLCH L 94.7% C 0.150 H 103.6°. Best body text is #000000 at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#FFF271
RGBrgb(255, 242, 113)
HSLhsl(55, 100%, 72%)
HSVhsv(55, 56%, 100%)
CMYKcmyk(0%, 5.1%, 55.7%, 0%)
CIE-LABlab(94.29, -11.38, 62.66)
CIE-LCHlch(94.29, 63.69, 100.29°)
OKLaboklab(94.69% -0.0351 0.1456)
OKLCHoklch(94.69% 0.15 103.6)
XYZxyz(75.9753, 85.9591, 28.2093)
Luminance0.8596 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF271 #717EFF
analogous
#FFAB71 #FFF271 #C5FF71
triadic
#FFF271 #71FFF2 #F271FF
tetradic
#FFF271 #71FFAB #717EFF #FF71C5
square
#FFF271 #71FFAB #717EFF #FF71C5
split-complementary
#FFF271 #71C5FF #AB71FF
monochromatic
#F6DF00 #FFEC34 #FFF271 #FFF8AE #FFFCE0

Accessibility & contrast

On white

1.15
#FFF271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.19
#FFF271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF271
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF271#FFFFFF#000000##000000
##FFF2711.001.1518.1918.19
#FFFFFF1.151.0021.0021.00
#00000018.1921.001.001.00
##00000018.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fff271;
/* rgb */ color: rgb(255, 242, 113);
/* oklch */ color: oklch(94.7% 0.150 103.6);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fff271',
    950: '#000000',
  },
}
SCSS
$custom: #fff271;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fff271",
  "rgb": {
    "r": 255,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 54.507,
    "s": 100,
    "l": 72.157
  },
  "oklch": {
    "l": 0.94689,
    "c": 0.14977,
    "h": 103.6
  },
  "luminance": 0.85957
}

Semantic roles & 50–950 ramp

primary
#FFF271
secondary
#3847DC
accent
#15E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FFF271

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

Preview Lab → · Contrast checker → · Palette generator →

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