#F8E762#F8E762

#F8E762 is a very light, vivid yellow. Relative luminance 0.780; OKLCH L 91.7% C 0.152 H 102.1°. Best body text is #000000 at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#F8E762
RGBrgb(248, 231, 98)
HSLhsl(53, 91%, 68%)
HSVhsv(53, 60%, 97%)
CMYKcmyk(0%, 6.9%, 60.5%, 2.7%)
CIE-LABlab(90.78, -9.80, 65.08)
CIE-LCHlch(90.78, 65.81, 98.56°)
OKLaboklab(91.71% -0.0318 0.1491)
OKLCHoklch(91.71% 0.152 102.1)
XYZxyz(69.4945, 77.9928, 22.9464)
Luminance0.7799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E762 #6273F8
analogous
#F89C62 #F8E762 #BEF862
triadic
#F8E762 #62F8E7 #E762F8
tetradic
#F8E762 #62F89C #6273F8 #F862BE
square
#F8E762 #62F89C #6273F8 #F862BE
split-complementary
#F8E762 #62BEF8 #9C62F8
monochromatic
#D6BF0A #F5DE27 #F8E762 #FBF09D #FDF9D7

Accessibility & contrast

On white

1.27
#F8E762 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.60
#F8E762 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E762
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E762#FFFFFF#000000##000000
##F8E7621.001.2716.6016.60
#FFFFFF1.271.0021.0021.00
#00000016.6021.001.001.00
##00000016.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE053
Deuteranopia (green-blind)
#FFE869
Tritanopia (blue-blind)
#FFD8CB
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f8e762;
/* rgb */ color: rgb(248, 231, 98);
/* oklch */ color: oklch(91.7% 0.152 102.1);
Tailwind
colors: {
  custom: {
    50: '#feee94',
    500: '#f8e762',
    950: '#000000',
  },
}
SCSS
$custom: #f8e762;
$custom-light: #feee94;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e762",
  "rgb": {
    "r": 248,
    "g": 231,
    "b": 98
  },
  "hsl": {
    "h": 53.2,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.91713,
    "c": 0.15243,
    "h": 102.1
  },
  "luminance": 0.7799
}

Semantic roles & 50–950 ramp

primary
#F8E762
secondary
#2E40D0
accent
#1AE600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160D
muted
#86847F

Preview Lab

Preview with #F8E762

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

Preview Lab → · Contrast checker → · Palette generator →

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