#F8F281#F8F281

#F8F281 is a very light, vivid yellow. Relative luminance 0.850; OKLCH L 94.3% C 0.135 H 106.0°. Best body text is #000000 at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#F8F281
RGBrgb(248, 242, 129)
HSLhsl(57, 89%, 74%)
HSVhsv(57, 48%, 97%)
CMYKcmyk(0%, 2.4%, 48%, 2.7%)
CIE-LABlab(93.90, -12.86, 54.79)
CIE-LCHlch(93.90, 56.28, 103.21°)
OKLaboklab(94.3% -0.0373 0.1301)
OKLCHoklch(94.3% 0.135 106)
XYZxyz(74.4278, 85.0477, 33.2598)
Luminance0.8505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F281 #8187F8
analogous
#F8B781 #F8F281 #C3F881
triadic
#F8F281 #81F8F2 #F281F8
tetradic
#F8F281 #81F8B7 #8187F8 #F881C3
square
#F8F281 #81F8B7 #8187F8 #F881C3
split-complementary
#F8F281 #81C3F8 #B781F8
monochromatic
#F1E60D #F5EC47 #F8F281 #FBF8BB #FDFCE2

Accessibility & contrast

On white

1.17
#F8F281 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.01
#F8F281 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F281
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F281#FFFFFF#000000##000000
##F8F2811.001.1718.0118.01
#FFFFFF1.171.0021.0021.00
#00000018.0121.001.001.00
##00000018.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB77
Deuteranopia (green-blind)
#FFF086
Tritanopia (blue-blind)
#FFE5D8
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f281;
/* rgb */ color: rgb(248, 242, 129);
/* oklch */ color: oklch(94.3% 0.135 106.0);
Tailwind
colors: {
  custom: {
    50: '#fdf6a8',
    500: '#f8f281',
    950: '#000000',
  },
}
SCSS
$custom: #f8f281;
$custom-light: #fdf6a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f281",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 129
  },
  "hsl": {
    "h": 56.975,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.94298,
    "c": 0.1354,
    "h": 106
  },
  "luminance": 0.85046
}

Semantic roles & 50–950 ramp

primary
#F8F281
secondary
#484FD5
accent
#0CE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F281

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

Preview Lab → · Contrast checker → · Palette generator →

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