#F7E371#F7E371

#F7E371 is a very light, vivid yellow. Relative luminance 0.759; OKLCH L 91.0% C 0.136 H 99.5°. Best body text is #000000 at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#F7E371
RGBrgb(247, 227, 113)
HSLhsl(51, 89%, 71%)
HSVhsv(51, 54%, 97%)
CMYKcmyk(0%, 8.1%, 54.3%, 3.1%)
CIE-LABlab(89.82, -7.14, 57.34)
CIE-LCHlch(89.82, 57.79, 97.10°)
OKLaboklab(90.98% -0.0225 0.1343)
OKLCHoklch(90.98% 0.136 99.5)
XYZxyz(68.8099, 75.9073, 26.6466)
Luminance0.7591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E371 #7185F7
analogous
#F7A071 #F7E371 #C8F771
triadic
#F7E371 #71F7E3 #E371F7
tetradic
#F7E371 #71F7A0 #7185F7 #F771C8
square
#F7E371 #71F7A0 #7185F7 #F771C8
split-complementary
#F7E371 #71C8F7 #A071F7
monochromatic
#E1C10D #F4D837 #F7E371 #FAEEAB #FDF9E2

Accessibility & contrast

On white

1.30
#F7E371 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.18
#F7E371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E371
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E371#FFFFFF#000000##000000
##F7E3711.001.3016.1816.18
#FFFFFF1.301.0021.0021.00
#00000016.1821.001.001.00
##00000016.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE66
Deuteranopia (green-blind)
#FBE576
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f7e371;
/* rgb */ color: rgb(247, 227, 113);
/* oklch */ color: oklch(91.0% 0.136 99.5);
Tailwind
colors: {
  custom: {
    50: '#fceb9d',
    500: '#f7e371',
    950: '#000000',
  },
}
SCSS
$custom: #f7e371;
$custom-light: #fceb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e371",
  "rgb": {
    "r": 247,
    "g": 227,
    "b": 113
  },
  "hsl": {
    "h": 51.045,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.90977,
    "c": 0.13614,
    "h": 99.5
  },
  "luminance": 0.75905
}

Semantic roles & 50–950 ramp

primary
#F7E371
secondary
#3A51D2
accent
#22E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F7E371

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

Preview Lab → · Contrast checker → · Palette generator →

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