#F8F272#F8F272

#F8F272 is a very light, vivid yellow. Relative luminance 0.847; OKLCH L 94.1% C 0.149 H 106.5°. Best body text is #000000 at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#F8F272
RGBrgb(248, 242, 114)
HSLhsl(57, 91%, 71%)
HSVhsv(57, 54%, 97%)
CMYKcmyk(0%, 2.4%, 54%, 2.7%)
CIE-LABlab(93.74, -14.09, 61.44)
CIE-LCHlch(93.74, 63.04, 102.92°)
OKLaboklab(94.12% -0.0424 0.1432)
OKLCHoklch(94.12% 0.149 106.5)
XYZxyz(73.5029, 84.6778, 28.3889)
Luminance0.8468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F272 #7278F8
analogous
#F8AF72 #F8F272 #BBF872
triadic
#F8F272 #72F8F2 #F272F8
tetradic
#F8F272 #72F8AF #7278F8 #F872BB
square
#F8F272 #72F8AF #7278F8 #F872BB
split-complementary
#F8F272 #72BBF8 #AF72F8
monochromatic
#E4DB0B #F5ED38 #F8F272 #FBF7AC #FEFCE2

Accessibility & contrast

On white

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

On black

17.94
#F8F272 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F272
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F272#FFFFFF#000000##000000
##F8F2721.001.1717.9417.94
#FFFFFF1.171.0021.0021.00
#00000017.9421.001.001.00
##00000017.9421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f272;
/* rgb */ color: rgb(248, 242, 114);
/* oklch */ color: oklch(94.1% 0.149 106.5);
Tailwind
colors: {
  custom: {
    50: '#fdf69e',
    500: '#f8f272',
    950: '#000000',
  },
}
SCSS
$custom: #f8f272;
$custom-light: #fdf69e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f272",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 114
  },
  "hsl": {
    "h": 57.313,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.94119,
    "c": 0.14933,
    "h": 106.5
  },
  "luminance": 0.84676
}

Semantic roles & 50–950 ramp

primary
#F8F272
secondary
#3B42D3
accent
#0AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F272

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

Preview Lab → · Contrast checker → · Palette generator →

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