#F9D862#F9D862

#F9D862 is a very light, vivid yellow. Relative luminance 0.701; OKLCH L 88.8% C 0.141 H 93.7°. Best body text is #000000 at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#F9D862
RGBrgb(249, 216, 98)
HSLhsl(47, 93%, 68%)
HSVhsv(47, 61%, 98%)
CMYKcmyk(0%, 13.3%, 60.6%, 2.4%)
CIE-LABlab(87.06, -1.86, 61.01)
CIE-LCHlch(87.06, 61.04, 91.74°)
OKLaboklab(88.79% -0.0091 0.1404)
OKLCHoklch(88.79% 0.141 93.7)
XYZxyz(65.8303, 70.1366, 21.6232)
Luminance0.7013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9D862 #6283F9
analogous
#F98C62 #F9D862 #CFF962
triadic
#F9D862 #62F9D8 #D862F9
tetradic
#F9D862 #62F98C #6283F9 #F962CF
square
#F9D862 #62F98C #6283F9 #F962CF
split-complementary
#F9D862 #62CFF9 #8C62F9
monochromatic
#D8AB08 #F7C927 #F9D862 #FBE79D #FEF5D8

Accessibility & contrast

On white

1.40
#F9D862 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.03
#F9D862 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9D862
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9D862#FFFFFF#000000##000000
##F9D8621.001.4015.0315.03
#FFFFFF1.401.0021.0021.00
#00000015.0321.001.001.00
##00000015.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD455
Deuteranopia (green-blind)
#F5DE67
Tritanopia (blue-blind)
#FFC9BE
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f9d862;
/* rgb */ color: rgb(249, 216, 98);
/* oklch */ color: oklch(88.8% 0.141 93.7);
Tailwind
colors: {
  custom: {
    50: '#ffe393',
    500: '#f9d862',
    950: '#000000',
  },
}
SCSS
$custom: #f9d862;
$custom-light: #ffe393;
$custom-dark: #000000;
JSON
{
  "hex": "#f9d862",
  "rgb": {
    "r": 249,
    "g": 216,
    "b": 98
  },
  "hsl": {
    "h": 46.887,
    "s": 92.638,
    "l": 68.039
  },
  "oklch": {
    "l": 0.88792,
    "c": 0.14067,
    "h": 93.7
  },
  "luminance": 0.70133
}

Semantic roles & 50–950 ramp

primary
#F9D862
secondary
#2D51D2
accent
#32E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F9D862

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

Preview Lab → · Contrast checker → · Palette generator →

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