#F7F171#F7F171

#F7F171 is a very light, vivid yellow. Relative luminance 0.839; OKLCH L 93.8% C 0.149 H 106.5°. Best body text is #000000 at 17.78:1 contrast (WCAG AA passes).

Color values

HEX#F7F171
RGBrgb(247, 241, 113)
HSLhsl(57, 89%, 71%)
HSVhsv(57, 54%, 97%)
CMYKcmyk(0%, 2.4%, 54.3%, 3.1%)
CIE-LABlab(93.40, -14.08, 61.47)
CIE-LCHlch(93.40, 63.06, 102.90°)
OKLaboklab(93.82% -0.0424 0.1432)
OKLCHoklch(93.82% 0.149 106.5)
XYZxyz(72.7958, 83.8792, 27.9752)
Luminance0.8388 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F171 #7177F7
analogous
#F7AE71 #F7F171 #BAF771
triadic
#F7F171 #71F7F1 #F171F7
tetradic
#F7F171 #71F7AE #7177F7 #F771BA
square
#F7F171 #71F7AE #7177F7 #F771BA
split-complementary
#F7F171 #71BAF7 #AE71F7
monochromatic
#E1D70D #F4EB37 #F7F171 #FAF7AB #FDFCE2

Accessibility & contrast

On white

1.18
#F7F171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.78
#F7F171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F171
17.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F171#FFFFFF#000000##000000
##F7F1711.001.1817.7817.78
#FFFFFF1.181.0021.0021.00
#00000017.7821.001.001.00
##00000017.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE964
Deuteranopia (green-blind)
#FFEF78
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f7f171;
/* rgb */ color: rgb(247, 241, 113);
/* oklch */ color: oklch(93.8% 0.149 106.5);
Tailwind
colors: {
  custom: {
    50: '#fcf59d',
    500: '#f7f171',
    950: '#000000',
  },
}
SCSS
$custom: #f7f171;
$custom-light: #fcf59d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f171",
  "rgb": {
    "r": 247,
    "g": 241,
    "b": 113
  },
  "hsl": {
    "h": 57.313,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.93821,
    "c": 0.14931,
    "h": 106.5
  },
  "luminance": 0.83877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F7F171

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

Preview Lab → · Contrast checker → · Palette generator →

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