#F7F873#F7F873

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

Color values

HEX#F7F873
RGBrgb(247, 248, 115)
HSLhsl(60, 90%, 71%)
HSVhsv(60, 54%, 97%)
CMYKcmyk(0.4%, 0%, 53.6%, 2.7%)
CIE-LABlab(95.22, -17.33, 62.67)
CIE-LCHlch(95.22, 65.03, 105.46°)
OKLaboklab(95.28% -0.0514 0.146)
OKLCHoklch(95.28% 0.155 109.4)
XYZxyz(75.0216, 88.1486, 29.2788)
Luminance0.8815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F873 #7473F8
analogous
#F8B673 #F7F873 #B4F873
triadic
#F7F873 #73F7F8 #F873F7
tetradic
#F7F873 #73F8B6 #7473F8 #F873B4
square
#F7F873 #73F8B6 #7473F8 #F873B4
split-complementary
#F7F873 #73B4F8 #B673F8
monochromatic
#E4E50B #F4F539 #F7F873 #FAFBAD #FDFEE2

Accessibility & contrast

On white

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

On black

18.63
#F7F873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F873
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F873#FFFFFF#000000##000000
##F7F8731.001.1318.6318.63
#FFFFFF1.131.0021.0021.00
#00000018.6321.001.001.00
##00000018.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF66
Deuteranopia (green-blind)
#FFF37A
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f7f873;
/* rgb */ color: rgb(247, 248, 115);
/* oklch */ color: oklch(95.3% 0.155 109.4);
Tailwind
colors: {
  custom: {
    50: '#fcfa9f',
    500: '#f7f873',
    950: '#000000',
  },
}
SCSS
$custom: #f7f873;
$custom-light: #fcfa9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f873",
  "rgb": {
    "r": 247,
    "g": 248,
    "b": 115
  },
  "hsl": {
    "h": 60.451,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.95282,
    "c": 0.15476,
    "h": 109.4
  },
  "luminance": 0.88147
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F7F873

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

Preview Lab → · Contrast checker → · Palette generator →

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