#F7F371#F7F371

#F7F371 is a very light, vivid yellow. Relative luminance 0.851; OKLCH L 94.2% C 0.151 H 107.4°. Best body text is #000000 at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#F7F371
RGBrgb(247, 243, 113)
HSLhsl(58, 89%, 71%)
HSVhsv(58, 54%, 97%)
CMYKcmyk(0%, 1.6%, 54.3%, 3.1%)
CIE-LABlab(93.91, -15.05, 62.06)
CIE-LCHlch(93.91, 63.86, 103.63°)
OKLaboklab(94.23% -0.0451 0.1444)
OKLCHoklch(94.23% 0.151 107.4)
XYZxyz(73.3911, 85.0697, 28.1737)
Luminance0.8507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F371 #7175F7
analogous
#F7B071 #F7F371 #B8F771
triadic
#F7F371 #71F7F3 #F371F7
tetradic
#F7F371 #71F7B0 #7175F7 #F771B8
square
#F7F371 #71F7B0 #7175F7 #F771B8
split-complementary
#F7F371 #71B8F7 #B071F7
monochromatic
#E1DB0D #F4EE37 #F7F371 #FAF8AB #FDFDE2

Accessibility & contrast

On white

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

On black

18.01
#F7F371 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F371
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F371#FFFFFF#000000##000000
##F7F3711.001.1718.0118.01
#FFFFFF1.171.0021.0021.00
#00000018.0121.001.001.00
##00000018.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7f371;
/* rgb */ color: rgb(247, 243, 113);
/* oklch */ color: oklch(94.2% 0.151 107.4);
Tailwind
colors: {
  custom: {
    50: '#fcf69e',
    500: '#f7f371',
    950: '#000000',
  },
}
SCSS
$custom: #f7f371;
$custom-light: #fcf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f371",
  "rgb": {
    "r": 247,
    "g": 243,
    "b": 113
  },
  "hsl": {
    "h": 58.209,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94232,
    "c": 0.15133,
    "h": 107.4
  },
  "luminance": 0.85068
}

Semantic roles & 50–950 ramp

primary
#F7F371
secondary
#3A3FD2
accent
#07E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F7F371

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

Preview Lab → · Contrast checker → · Palette generator →

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