#F8F28D#F8F28D

#F8F28D is a very light, vivid yellow. Relative luminance 0.854; OKLCH L 94.5% C 0.123 H 105.5°. Best body text is #000000 at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#F8F28D
RGBrgb(248, 242, 141)
HSLhsl(57, 88%, 76%)
HSVhsv(57, 43%, 97%)
CMYKcmyk(0%, 2.4%, 43.1%, 2.7%)
CIE-LABlab(94.05, -11.75, 49.29)
CIE-LCHlch(94.05, 50.67, 103.41°)
OKLaboklab(94.46% -0.033 0.1188)
OKLCHoklch(94.46% 0.123 105.5)
XYZxyz(75.2728, 85.3857, 37.7101)
Luminance0.8538 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F28D #8D93F8
analogous
#F8BD8D #F8F28D #C9F88D
triadic
#F8F28D #8DF8F2 #F28DF8
tetradic
#F8F28D #8DF8BD #8D93F8 #F88DC9
square
#F8F28D #8DF8BD #8D93F8 #F88DC9
split-complementary
#F8F28D #8DC9F8 #BD8DF8
monochromatic
#F1E51A #F4EB53 #F8F28D #FCF9C7 #FDFCE2

Accessibility & contrast

On white

1.16
#F8F28D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.08
#F8F28D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F28D
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F28D#FFFFFF#000000##000000
##F8F28D1.001.1618.0818.08
#FFFFFF1.161.0021.0021.00
#00000018.0821.001.001.00
##00000018.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB85
Deuteranopia (green-blind)
#FFF091
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f28d;
/* rgb */ color: rgb(248, 242, 141);
/* oklch */ color: oklch(94.5% 0.123 105.5);
Tailwind
colors: {
  custom: {
    50: '#fcf6b0',
    500: '#f8f28d',
    950: '#000000',
  },
}
SCSS
$custom: #f8f28d;
$custom-light: #fcf6b0;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f28d",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 141
  },
  "hsl": {
    "h": 56.636,
    "s": 88.43,
    "l": 76.275
  },
  "oklch": {
    "l": 0.9446,
    "c": 0.1233,
    "h": 105.5
  },
  "luminance": 0.85384
}

Semantic roles & 50–950 ramp

primary
#F8F28D
secondary
#535AD6
accent
#0DE500
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #F8F28D

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

Preview Lab → · Contrast checker → · Palette generator →

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