#F8F962#F8F962

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

Color values

HEX#F8F962
RGBrgb(248, 249, 98)
HSLhsl(60, 93%, 68%)
HSVhsv(60, 61%, 98%)
CMYKcmyk(0.4%, 0%, 60.6%, 2.4%)
CIE-LABlab(95.41, -18.60, 70.09)
CIE-LCHlch(95.41, 72.51, 104.86°)
OKLaboklab(95.4% -0.0568 0.1597)
OKLCHoklch(95.4% 0.169 109.6)
XYZxyz(74.7940, 88.5917, 24.7129)
Luminance0.8859 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F962 #6362F9
analogous
#F9AE62 #F8F962 #ADF962
triadic
#F8F962 #62F8F9 #F962F8
tetradic
#F8F962 #62F9AE #6362F9 #F962AD
square
#F8F962 #62F9AE #6362F9 #F962AD
split-complementary
#F8F962 #62ADF9 #AE62F9
monochromatic
#D7D808 #F5F727 #F8F962 #FBFB9D #FDFED8

Accessibility & contrast

On white

1.12
#F8F962 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.72
#F8F962 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F962
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F962#FFFFFF#000000##000000
##F8F9621.001.1218.7218.72
#FFFFFF1.121.0021.0021.00
#00000018.7221.001.001.00
##00000018.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF50
Deuteranopia (green-blind)
#FFF46B
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f962;
/* rgb */ color: rgb(248, 249, 98);
/* oklch */ color: oklch(95.4% 0.169 109.6);
Tailwind
colors: {
  custom: {
    50: '#fefb95',
    500: '#f8f962',
    950: '#000000',
  },
}
SCSS
$custom: #f8f962;
$custom-light: #fefb95;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f962",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 98
  },
  "hsl": {
    "h": 60.397,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.95401,
    "c": 0.16949,
    "h": 109.6
  },
  "luminance": 0.8859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F962

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

Preview Lab → · Contrast checker → · Palette generator →

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