#F8F271#F8F271

#F8F271 is a very light, vivid yellow. Relative luminance 0.847; OKLCH L 94.1% C 0.150 H 106.5°. Best body text is #000000 at 17.93:1 contrast (WCAG AA passes).

Color values

HEX#F8F271
RGBrgb(248, 242, 113)
HSLhsl(57, 91%, 71%)
HSVhsv(57, 54%, 97%)
CMYKcmyk(0%, 2.4%, 54.4%, 2.7%)
CIE-LABlab(93.73, -14.17, 61.88)
CIE-LCHlch(93.73, 63.48, 102.90°)
OKLaboklab(94.11% -0.0427 0.144)
OKLCHoklch(94.11% 0.15 106.5)
XYZxyz(73.4463, 84.6552, 28.0908)
Luminance0.8465 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F271 #7177F8
analogous
#F8AE71 #F8F271 #BBF871
triadic
#F8F271 #71F8F2 #F271F8
tetradic
#F8F271 #71F8AE #7177F8 #F871BB
square
#F8F271 #71F8AE #7177F8 #F871BB
split-complementary
#F8F271 #71BBF8 #AE71F8
monochromatic
#E3DA0B #F5ED37 #F8F271 #FBF7AB #FEFCE2

Accessibility & contrast

On white

1.17
#F8F271 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.93
#F8F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F271
17.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F271#FFFFFF#000000##000000
##F8F2711.001.1717.9317.93
#FFFFFF1.171.0021.0021.00
#00000017.9321.001.001.00
##00000017.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f271;
/* rgb */ color: rgb(248, 242, 113);
/* oklch */ color: oklch(94.1% 0.150 106.5);
Tailwind
colors: {
  custom: {
    50: '#fdf69e',
    500: '#f8f271',
    950: '#000000',
  },
}
SCSS
$custom: #f8f271;
$custom-light: #fdf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f271",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 57.333,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94108,
    "c": 0.15022,
    "h": 106.5
  },
  "luminance": 0.84653
}

Semantic roles & 50–950 ramp

primary
#F8F271
secondary
#3A41D3
accent
#0AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F271

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

Preview Lab → · Contrast checker → · Palette generator →

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