#F8F662#F8F662

#F8F662 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.8% C 0.167 H 108.5°. Best body text is #000000 at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#F8F662
RGBrgb(248, 246, 98)
HSLhsl(59, 91%, 68%)
HSVhsv(59, 60%, 97%)
CMYKcmyk(0%, 0.8%, 60.5%, 2.7%)
CIE-LABlab(94.63, -17.15, 69.26)
CIE-LCHlch(94.63, 71.35, 103.91°)
OKLaboklab(94.78% -0.0527 0.1579)
OKLCHoklch(94.78% 0.167 108.5)
XYZxyz(73.8741, 86.7520, 24.4063)
Luminance0.8675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F662 #6264F8
analogous
#F8AB62 #F8F662 #AFF862
triadic
#F8F662 #62F8F6 #F662F8
tetradic
#F8F662 #62F8AB #6264F8 #F862AF
square
#F8F662 #62F8AB #6264F8 #F862AF
split-complementary
#F8F662 #62AFF8 #AB62F8
monochromatic
#D6D30A #F5F327 #F8F662 #FBF99D #FDFDD7

Accessibility & contrast

On white

1.14
#F8F662 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.35
#F8F662 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F662
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F662#FFFFFF#000000##000000
##F8F6621.001.1418.3518.35
#FFFFFF1.141.0021.0021.00
#00000018.3521.001.001.00
##00000018.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED50
Deuteranopia (green-blind)
#FFF26B
Tritanopia (blue-blind)
#FFE7D7
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f8f662;
/* rgb */ color: rgb(248, 246, 98);
/* oklch */ color: oklch(94.8% 0.167 108.5);
Tailwind
colors: {
  custom: {
    50: '#fef895',
    500: '#f8f662',
    950: '#000000',
  },
}
SCSS
$custom: #f8f662;
$custom-light: #fef895;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f662",
  "rgb": {
    "r": 248,
    "g": 246,
    "b": 98
  },
  "hsl": {
    "h": 59.2,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.94781,
    "c": 0.1665,
    "h": 108.5
  },
  "luminance": 0.8675
}

Semantic roles & 50–950 ramp

primary
#F8F662
secondary
#2E30D0
accent
#03E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #F8F662

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

Preview Lab → · Contrast checker → · Palette generator →

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