#F7E171#F7E171

#F7E171 is a very light, vivid yellow. Relative luminance 0.748; OKLCH L 90.6% C 0.134 H 98.4°. Best body text is #000000 at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#F7E171
RGBrgb(247, 225, 113)
HSLhsl(50, 89%, 71%)
HSVhsv(50, 54%, 97%)
CMYKcmyk(0%, 8.9%, 54.3%, 3.1%)
CIE-LABlab(89.31, -6.14, 56.75)
CIE-LCHlch(89.31, 57.08, 96.18°)
OKLaboklab(90.57% -0.0196 0.133)
OKLCHoklch(90.57% 0.134 98.4)
XYZxyz(68.2660, 74.8196, 26.4653)
Luminance0.7482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E171 #7187F7
analogous
#F79E71 #F7E171 #CAF771
triadic
#F7E171 #71F7E1 #E171F7
tetradic
#F7E171 #71F79E #7187F7 #F771CA
square
#F7E171 #71F79E #7187F7 #F771CA
split-complementary
#F7E171 #71CAF7 #9E71F7
monochromatic
#E1BE0D #F4D537 #F7E171 #FAEDAB #FDF9E2

Accessibility & contrast

On white

1.32
#F7E171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.96
#F7E171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E171
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E171#FFFFFF#000000##000000
##F7E1711.001.3215.9615.96
#FFFFFF1.321.0021.0021.00
#00000015.9621.001.001.00
##00000015.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC66
Deuteranopia (green-blind)
#FAE476
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#E0E0E0

Design tokens & code

CSS
--color: #f7e171;
/* rgb */ color: rgb(247, 225, 113);
/* oklch */ color: oklch(90.6% 0.134 98.4);
Tailwind
colors: {
  custom: {
    50: '#fcea9d',
    500: '#f7e171',
    950: '#000000',
  },
}
SCSS
$custom: #f7e171;
$custom-light: #fcea9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e171",
  "rgb": {
    "r": 247,
    "g": 225,
    "b": 113
  },
  "hsl": {
    "h": 50.149,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.90574,
    "c": 0.13443,
    "h": 98.4
  },
  "luminance": 0.74817
}

Semantic roles & 50–950 ramp

primary
#F7E171
secondary
#3A53D2
accent
#26E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F7E171

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

Preview Lab → · Contrast checker → · Palette generator →

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