#F8D562#F8D562

#F8D562 is a very light, vivid yellow. Relative luminance 0.684; OKLCH L 88.1% C 0.138 H 92.4°. Best body text is #000000 at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#F8D562
RGBrgb(248, 213, 98)
HSLhsl(46, 91%, 68%)
HSVhsv(46, 60%, 97%)
CMYKcmyk(0%, 14.1%, 60.5%, 2.7%)
CIE-LABlab(86.22, -0.74, 60.05)
CIE-LCHlch(86.22, 60.05, 90.71°)
OKLaboklab(88.11% -0.0058 0.1383)
OKLCHoklch(88.11% 0.138 92.4)
XYZxyz(64.7132, 68.4302, 21.3526)
Luminance0.6843 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D562 #6285F8
analogous
#F88A62 #F8D562 #D0F862
triadic
#F8D562 #62F8D5 #D562F8
tetradic
#F8D562 #62F88A #6285F8 #F862D0
square
#F8D562 #62F88A #6285F8 #F862D0
split-complementary
#F8D562 #62D0F8 #8A62F8
monochromatic
#D6A60A #F5C527 #F8D562 #FBE59D #FDF4D7

Accessibility & contrast

On white

1.43
#F8D562 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.69
#F8D562 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D562
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D562#FFFFFF#000000##000000
##F8D5621.001.4314.6914.69
#FFFFFF1.431.0021.0021.00
#00000014.6921.001.001.00
##00000014.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D256
Deuteranopia (green-blind)
#F2DC67
Tritanopia (blue-blind)
#FFC6BC
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f8d562;
/* rgb */ color: rgb(248, 213, 98);
/* oklch */ color: oklch(88.1% 0.138 92.4);
Tailwind
colors: {
  custom: {
    50: '#fee193',
    500: '#f8d562',
    950: '#000000',
  },
}
SCSS
$custom: #f8d562;
$custom-light: #fee193;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d562",
  "rgb": {
    "r": 248,
    "g": 213,
    "b": 98
  },
  "hsl": {
    "h": 46,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.88105,
    "c": 0.13846,
    "h": 92.4
  },
  "luminance": 0.68427
}

Semantic roles & 50–950 ramp

primary
#F8D562
secondary
#2E54D0
accent
#36E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F8D562

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

Preview Lab → · Contrast checker → · Palette generator →

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