#F8E28A#F8E28A

#F8E28A is a very light, moderate yellow. Relative luminance 0.762; OKLCH L 91.2% C 0.111 H 95.8°. Best body text is #000000 at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#F8E28A
RGBrgb(248, 226, 138)
HSLhsl(48, 89%, 76%)
HSVhsv(48, 44%, 97%)
CMYKcmyk(0%, 8.9%, 44.4%, 2.7%)
CIE-LABlab(89.95, -4.06, 45.62)
CIE-LCHlch(89.95, 45.80, 95.09°)
OKLaboklab(91.2% -0.0111 0.1104)
OKLCHoklch(91.2% 0.111 95.8)
XYZxyz(70.4971, 76.1867, 35.0319)
Luminance0.7618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E28A #8AA0F8
analogous
#F8AB8A #F8E28A #D7F88A
triadic
#F8E28A #8AF8E2 #E28AF8
tetradic
#F8E28A #8AF8AB #8AA0F8 #F88AD7
square
#F8E28A #8AF8AB #8AA0F8 #F88AD7
split-complementary
#F8E28A #8AD7F8 #AB8AF8
monochromatic
#F1C517 #F5D450 #F8E28A #FBF0C4 #FDF8E2

Accessibility & contrast

On white

1.29
#F8E28A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.24
#F8E28A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E28A
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E28A#FFFFFF#000000##000000
##F8E28A1.001.2916.2416.24
#FFFFFF1.291.0021.0021.00
#00000016.2421.001.001.00
##00000016.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DE83
Deuteranopia (green-blind)
#F8E58D
Tritanopia (blue-blind)
#FFD6CD
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f8e28a;
/* rgb */ color: rgb(248, 226, 138);
/* oklch */ color: oklch(91.2% 0.111 95.8);
Tailwind
colors: {
  custom: {
    50: '#fceaad',
    500: '#f8e28a',
    950: '#000000',
  },
}
SCSS
$custom: #f8e28a;
$custom-light: #fceaad;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e28a",
  "rgb": {
    "r": 248,
    "g": 226,
    "b": 138
  },
  "hsl": {
    "h": 48,
    "s": 88.71,
    "l": 75.686
  },
  "oklch": {
    "l": 0.91196,
    "c": 0.11094,
    "h": 95.8
  },
  "luminance": 0.76184
}

Semantic roles & 50–950 ramp

primary
#F8E28A
secondary
#506BD6
accent
#2EE500
background
#FFFEFD
surface
#FFFDF7
border
#D7D5D0
text
#181610
muted
#868481

Preview Lab

Preview with #F8E28A

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

Preview Lab → · Contrast checker → · Palette generator →

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