#F8E262#F8E262

#F8E262 is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.7% C 0.148 H 99.6°. Best body text is #000000 at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#F8E262
RGBrgb(248, 226, 98)
HSLhsl(51, 91%, 68%)
HSVhsv(51, 60%, 97%)
CMYKcmyk(0%, 8.9%, 60.5%, 2.7%)
CIE-LABlab(89.50, -7.31, 63.68)
CIE-LCHlch(89.50, 64.10, 96.55°)
OKLaboklab(90.7% -0.0247 0.1461)
OKLCHoklch(90.7% 0.148 99.6)
XYZxyz(68.1151, 75.2339, 22.4866)
Luminance0.7523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E262 #6278F8
analogous
#F89762 #F8E262 #C3F862
triadic
#F8E262 #62F8E2 #E262F8
tetradic
#F8E262 #62F897 #6278F8 #F862C3
square
#F8E262 #62F897 #6278F8 #F862C3
split-complementary
#F8E262 #62C3F8 #9762F8
monochromatic
#D6B80A #F5D727 #F8E262 #FBED9D #FDF8D7

Accessibility & contrast

On white

1.31
#F8E262 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.05
#F8E262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E262
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E262#FFFFFF#000000##000000
##F8E2621.001.3116.0516.05
#FFFFFF1.311.0021.0021.00
#00000016.0521.001.001.00
##00000016.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6DC54
Deuteranopia (green-blind)
#FCE569
Tritanopia (blue-blind)
#FFD3C6
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e262;
/* rgb */ color: rgb(248, 226, 98);
/* oklch */ color: oklch(90.7% 0.148 99.6);
Tailwind
colors: {
  custom: {
    50: '#feea93',
    500: '#f8e262',
    950: '#000000',
  },
}
SCSS
$custom: #f8e262;
$custom-light: #feea93;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e262",
  "rgb": {
    "r": 248,
    "g": 226,
    "b": 98
  },
  "hsl": {
    "h": 51.2,
    "s": 91.463,
    "l": 67.843
  },
  "oklch": {
    "l": 0.90702,
    "c": 0.14817,
    "h": 99.6
  },
  "luminance": 0.75231
}

Semantic roles & 50–950 ramp

primary
#F8E262
secondary
#2E46D0
accent
#22E600
background
#FFFEFC
surface
#FFFDF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F8E262

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

Preview Lab → · Contrast checker → · Palette generator →

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