#F7F271#F7F271

#F7F271 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 94.0% C 0.150 H 106.9°. Best body text is #000000 at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#F7F271
RGBrgb(247, 242, 113)
HSLhsl(58, 89%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 2%, 54.3%, 3.1%)
CIE-LABlab(93.66, -14.57, 61.77)
CIE-LCHlch(93.66, 63.46, 103.27°)
OKLaboklab(94.03% -0.0438 0.1438)
OKLCHoklch(94.03% 0.15 106.9)
XYZxyz(73.0926, 84.4728, 28.0742)
Luminance0.8447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F271 #7176F7
analogous
#F7AF71 #F7F271 #B9F771
triadic
#F7F271 #71F7F2 #F271F7
tetradic
#F7F271 #71F7AF #7176F7 #F771B9
square
#F7F271 #71F7AF #7176F7 #F771B9
split-complementary
#F7F271 #71B9F7 #AF71F7
monochromatic
#E1D90D #F4ED37 #F7F271 #FAF7AB #FDFCE2

Accessibility & contrast

On white

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

On black

17.89
#F7F271 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F271
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F271#FFFFFF#000000##000000
##F7F2711.001.1717.8917.89
#FFFFFF1.171.0021.0021.00
#00000017.8921.001.001.00
##00000017.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7f271;
/* rgb */ color: rgb(247, 242, 113);
/* oklch */ color: oklch(94.0% 0.150 106.9);
Tailwind
colors: {
  custom: {
    50: '#fcf69e',
    500: '#f7f271',
    950: '#000000',
  },
}
SCSS
$custom: #f7f271;
$custom-light: #fcf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f271",
  "rgb": {
    "r": 247,
    "g": 242,
    "b": 113
  },
  "hsl": {
    "h": 57.761,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94026,
    "c": 0.15032,
    "h": 106.9
  },
  "luminance": 0.84471
}

Semantic roles & 50–950 ramp

primary
#F7F271
secondary
#3A40D2
accent
#09E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F7F271

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

Preview Lab → · Contrast checker → · Palette generator →

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