#F8FA52#F8FA52

#F8FA52 is a very light, vivid yellow. Relative luminance 0.889; OKLCH L 95.5% C 0.182 H 110.1°. Best body text is #000000 at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#F8FA52
RGBrgb(248, 250, 82)
HSLhsl(61, 94%, 65%)
HSVhsv(61, 67%, 98%)
CMYKcmyk(0.8%, 0%, 67.2%, 2%)
CIE-LABlab(95.55, -19.99, 76.37)
CIE-LCHlch(95.55, 78.94, 104.67°)
OKLaboklab(95.48% -0.0623 0.1706)
OKLCHoklch(95.48% 0.182 110.1)
XYZxyz(74.4225, 88.9389, 21.2276)
Luminance0.8894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8FA52 #5452FA
analogous
#FAA852 #F8FA52 #A4FA52
triadic
#F8FA52 #52F8FA #FA52F8
tetradic
#F8FA52 #52FAA8 #5452FA #FA52A4
square
#F8FA52 #52FAA8 #5452FA #FA52A4
split-complementary
#F8FA52 #52A4FA #A852FA
monochromatic
#C9CC06 #F6F817 #F8FA52 #FAFC8D #FDFDC9

Accessibility & contrast

On white

1.12
#F8FA52 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.79
#F8FA52 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8FA52
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8FA52#FFFFFF#000000##000000
##F8FA521.001.1218.7918.79
#FFFFFF1.121.0021.0021.00
#00000018.7921.001.001.00
##00000018.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF038
Deuteranopia (green-blind)
#FFF55E
Tritanopia (blue-blind)
#FFEBD9
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8fa52;
/* rgb */ color: rgb(248, 250, 82);
/* oklch */ color: oklch(95.5% 0.182 110.1);
Tailwind
colors: {
  custom: {
    50: '#fefb8c',
    500: '#f8fa52',
    950: '#000000',
  },
}
SCSS
$custom: #f8fa52;
$custom-light: #fefb8c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8fa52",
  "rgb": {
    "r": 248,
    "g": 250,
    "b": 82
  },
  "hsl": {
    "h": 60.714,
    "s": 94.382,
    "l": 65.098
  },
  "oklch": {
    "l": 0.9548,
    "c": 0.1816,
    "h": 110.1
  },
  "luminance": 0.88937
}

Semantic roles & 50–950 ramp

primary
#F8FA52
secondary
#2B29C7
accent
#00E603
background
#FFFFFC
surface
#FFFFF4
border
#D7D7CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F8FA52

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

Preview Lab → · Contrast checker → · Palette generator →

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