#F8F276#F8F276

#F8F276 is a very light, vivid yellow. Relative luminance 0.848; OKLCH L 94.2% C 0.146 H 106.4°. Best body text is #000000 at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#F8F276
RGBrgb(248, 242, 118)
HSLhsl(57, 90%, 72%)
HSVhsv(57, 52%, 97%)
CMYKcmyk(0%, 2.4%, 52.4%, 2.7%)
CIE-LABlab(93.78, -13.78, 59.70)
CIE-LCHlch(93.78, 61.27, 103.00°)
OKLaboklab(94.16% -0.0411 0.1399)
OKLCHoklch(94.16% 0.146 106.4)
XYZxyz(73.7356, 84.7709, 29.6143)
Luminance0.8477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F276 #767CF8
analogous
#F8B176 #F8F276 #BDF876
triadic
#F8F276 #76F8F2 #F276F8
tetradic
#F8F276 #76F8B1 #767CF8 #F876BD
square
#F8F276 #76F8B1 #767CF8 #F876BD
split-complementary
#F8F276 #76BDF8 #B176F8
monochromatic
#E8DE0C #F5EC3C #F8F276 #FBF8B0 #FEFCE2

Accessibility & contrast

On white

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

On black

17.95
#F8F276 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F276
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F276#FFFFFF#000000##000000
##F8F2761.001.1717.9517.95
#FFFFFF1.171.0021.0021.00
#00000017.9521.001.001.00
##00000017.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA6A
Deuteranopia (green-blind)
#FFF07C
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f276;
/* rgb */ color: rgb(248, 242, 118);
/* oklch */ color: oklch(94.2% 0.146 106.4);
Tailwind
colors: {
  custom: {
    50: '#fdf6a1',
    500: '#f8f276',
    950: '#000000',
  },
}
SCSS
$custom: #f8f276;
$custom-light: #fdf6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f276",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 118
  },
  "hsl": {
    "h": 57.231,
    "s": 90.278,
    "l": 71.765
  },
  "oklch": {
    "l": 0.94164,
    "c": 0.14575,
    "h": 106.4
  },
  "luminance": 0.84769
}

Semantic roles & 50–950 ramp

primary
#F8F276
secondary
#3F45D4
accent
#0BE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F276

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

Preview Lab → · Contrast checker → · Palette generator →

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