#F7F862#F7F862

#F7F862 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.169 H 109.6°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#F7F862
RGBrgb(247, 248, 98)
HSLhsl(60, 91%, 68%)
HSVhsv(60, 60%, 97%)
CMYKcmyk(0.4%, 0%, 60.5%, 2.7%)
CIE-LABlab(95.07, -18.52, 69.71)
CIE-LCHlch(95.07, 72.12, 104.88°)
OKLaboklab(95.11% -0.0565 0.1589)
OKLCHoklch(95.11% 0.169 109.6)
XYZxyz(74.1320, 87.7928, 24.5935)
Luminance0.8779 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F862 #6362F8
analogous
#F8AE62 #F7F862 #ACF862
triadic
#F7F862 #62F7F8 #F862F7
tetradic
#F7F862 #62F8AE #6362F8 #F862AC
square
#F7F862 #62F8AE #6362F8 #F862AC
split-complementary
#F7F862 #62ACF8 #AE62F8
monochromatic
#D5D60A #F4F527 #F7F862 #FAFB9D #FDFDD7

Accessibility & contrast

On white

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

On black

18.56
#F7F862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F862
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F862#FFFFFF#000000##000000
##F7F8621.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE50
Deuteranopia (green-blind)
#FFF36B
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f7f862;
/* rgb */ color: rgb(247, 248, 98);
/* oklch */ color: oklch(95.1% 0.169 109.6);
Tailwind
colors: {
  custom: {
    50: '#fdfa95',
    500: '#f7f862',
    950: '#000000',
  },
}
SCSS
$custom: #f7f862;
$custom-light: #fdfa95;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f862",
  "rgb": {
    "r": 247,
    "g": 248,
    "b": 98
  },
  "hsl": {
    "h": 60.4,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.95114,
    "c": 0.16866,
    "h": 109.6
  },
  "luminance": 0.87791
}

Semantic roles & 50–950 ramp

primary
#F7F862
secondary
#2F2ED0
accent
#00E602
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F7F862

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

Preview Lab → · Contrast checker → · Palette generator →

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