#F7F870#F7F870

#F7F870 is a very light, vivid yellow. Relative luminance 0.881; OKLCH L 95.3% C 0.157 H 109.4°. Best body text is #000000 at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#F7F870
RGBrgb(247, 248, 112)
HSLhsl(60, 91%, 71%)
HSVhsv(60, 55%, 97%)
CMYKcmyk(0.4%, 0%, 54.8%, 2.7%)
CIE-LABlab(95.19, -17.55, 63.95)
CIE-LCHlch(95.19, 66.32, 105.35°)
OKLaboklab(95.25% -0.0524 0.1484)
OKLCHoklch(95.25% 0.157 109.4)
XYZxyz(74.8518, 88.0807, 28.3844)
Luminance0.8808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F870 #7170F8
analogous
#F8B570 #F7F870 #B3F870
triadic
#F7F870 #70F7F8 #F870F7
tetradic
#F7F870 #70F8B5 #7170F8 #F870B3
square
#F7F870 #70F8B5 #7170F8 #F870B3
split-complementary
#F7F870 #70B3F8 #B570F8
monochromatic
#E1E30B #F4F536 #F7F870 #FAFBAA #FDFEE2

Accessibility & contrast

On white

1.13
#F7F870 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.62
#F7F870 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F870
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F870#FFFFFF#000000##000000
##F7F8701.001.1318.6218.62
#FFFFFF1.131.0021.0021.00
#00000018.6221.001.001.00
##00000018.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF62
Deuteranopia (green-blind)
#FFF378
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f7f870;
/* rgb */ color: rgb(247, 248, 112);
/* oklch */ color: oklch(95.3% 0.157 109.4);
Tailwind
colors: {
  custom: {
    50: '#fcfa9d',
    500: '#f7f870',
    950: '#000000',
  },
}
SCSS
$custom: #f7f870;
$custom-light: #fcfa9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f870",
  "rgb": {
    "r": 247,
    "g": 248,
    "b": 112
  },
  "hsl": {
    "h": 60.441,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.9525,
    "c": 0.15736,
    "h": 109.4
  },
  "luminance": 0.88079
}

Semantic roles & 50–950 ramp

primary
#F7F870
secondary
#3A39D3
accent
#00E602
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F7F870

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

Preview Lab → · Contrast checker → · Palette generator →

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