#F9F862#F9F862

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

Color values

HEX#F9F862
RGBrgb(249, 248, 98)
HSLhsl(60, 93%, 68%)
HSVhsv(60, 61%, 98%)
CMYKcmyk(0%, 0.4%, 60.6%, 2.4%)
CIE-LABlab(95.23, -17.72, 69.92)
CIE-LCHlch(95.23, 72.13, 104.22°)
OKLaboklab(95.28% -0.0544 0.1593)
OKLCHoklch(95.28% 0.168 108.8)
XYZxyz(74.8413, 88.1585, 24.6268)
Luminance0.8816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F862 #6263F9
analogous
#F9AD62 #F9F862 #AEF962
triadic
#F9F862 #62F9F8 #F862F9
tetradic
#F9F862 #62F9AD #6263F9 #F962AE
square
#F9F862 #62F9AD #6263F9 #F962AE
split-complementary
#F9F862 #62AEF9 #AD62F9
monochromatic
#D8D708 #F7F527 #F9F862 #FBFB9D #FEFDD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F9F862#FFFFFF#000000##000000
##F9F8621.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)
#FFEE50
Deuteranopia (green-blind)
#FFF46B
Tritanopia (blue-blind)
#FFE9D9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f9f862;
/* rgb */ color: rgb(249, 248, 98);
/* oklch */ color: oklch(95.3% 0.168 108.8);
Tailwind
colors: {
  custom: {
    50: '#fefa95',
    500: '#f9f862',
    950: '#000000',
  },
}
SCSS
$custom: #f9f862;
$custom-light: #fefa95;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f862",
  "rgb": {
    "r": 249,
    "g": 248,
    "b": 98
  },
  "hsl": {
    "h": 59.603,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.95275,
    "c": 0.16834,
    "h": 108.8
  },
  "luminance": 0.88156
}

Semantic roles & 50–950 ramp

primary
#F9F862
secondary
#2D2ED2
accent
#02E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F9F862

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

Preview Lab → · Contrast checker → · Palette generator →

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