#F8D462#F8D462

#F8D462 is a very light, vivid yellow. Relative luminance 0.679; OKLCH L 87.9% C 0.138 H 91.8°. Best body text is #000000 at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#F8D462
RGBrgb(248, 212, 98)
HSLhsl(46, 91%, 68%)
HSVhsv(46, 60%, 97%)
CMYKcmyk(0%, 14.5%, 60.5%, 2.7%)
CIE-LABlab(85.97, -0.23, 59.77)
CIE-LCHlch(85.97, 59.77, 90.22°)
OKLaboklab(87.91% -0.0043 0.1378)
OKLCHoklch(87.91% 0.138 91.8)
XYZxyz(64.4624, 67.9287, 21.2690)
Luminance0.6793 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D462 #6286F8
analogous
#F88962 #F8D462 #D1F862
triadic
#F8D462 #62F8D4 #D462F8
tetradic
#F8D462 #62F889 #6286F8 #F862D1
square
#F8D462 #62F889 #6286F8 #F862D1
split-complementary
#F8D462 #62D1F8 #8962F8
monochromatic
#D6A50A #F5C427 #F8D462 #FBE49D #FDF4D7

Accessibility & contrast

On white

1.44
#F8D462 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.59
#F8D462 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D462
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D462#FFFFFF#000000##000000
##F8D4621.001.4414.5914.59
#FFFFFF1.441.0021.0021.00
#00000014.5921.001.001.00
##00000014.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D156
Deuteranopia (green-blind)
#F1DB67
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D7D7D7

Design tokens & code

CSS
--color: #f8d462;
/* rgb */ color: rgb(248, 212, 98);
/* oklch */ color: oklch(87.9% 0.138 91.8);
Tailwind
colors: {
  custom: {
    50: '#fee092',
    500: '#f8d462',
    950: '#000000',
  },
}
SCSS
$custom: #f8d462;
$custom-light: #fee092;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d462",
  "rgb": {
    "r": 248,
    "g": 212,
    "b": 98
  },
  "hsl": {
    "h": 45.6,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.87908,
    "c": 0.13782,
    "h": 91.8
  },
  "luminance": 0.67925
}

Semantic roles & 50–950 ramp

primary
#F8D462
secondary
#2E55D0
accent
#37E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F8D462

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

Preview Lab → · Contrast checker → · Palette generator →

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