#F8F552#F8F552

#F8F552 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.4% C 0.177 H 108.3°. Best body text is #000000 at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#F8F552
RGBrgb(248, 245, 82)
HSLhsl(59, 92%, 65%)
HSVhsv(59, 67%, 97%)
CMYKcmyk(0%, 1.2%, 66.9%, 2.7%)
CIE-LABlab(94.26, -17.59, 75.07)
CIE-LCHlch(94.26, 77.10, 103.19°)
OKLaboklab(94.45% -0.0556 0.1678)
OKLCHoklch(94.45% 0.177 108.3)
XYZxyz(72.8894, 85.8727, 20.7166)
Luminance0.8587 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F552 #5255F8
analogous
#F8A252 #F8F552 #A8F852
triadic
#F8F552 #52F8F5 #F552F8
tetradic
#F8F552 #52F8A2 #5255F8 #F852A8
square
#F8F552 #52F8A2 #5255F8 #F852A8
split-complementary
#F8F552 #52A8F8 #A252F8
monochromatic
#C8C408 #F6F217 #F8F552 #FAF88D #FDFCC8

Accessibility & contrast

On white

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

On black

18.17
#F8F552 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F552
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F552#FFFFFF#000000##000000
##F8F5521.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB39
Deuteranopia (green-blind)
#FFF15D
Tritanopia (blue-blind)
#FFE6D4
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f8f552;
/* rgb */ color: rgb(248, 245, 82);
/* oklch */ color: oklch(94.4% 0.177 108.3);
Tailwind
colors: {
  custom: {
    50: '#fef88b',
    500: '#f8f552',
    950: '#000000',
  },
}
SCSS
$custom: #f8f552;
$custom-light: #fef88b;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f552",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 82
  },
  "hsl": {
    "h": 58.916,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.94445,
    "c": 0.1768,
    "h": 108.3
  },
  "luminance": 0.8587
}

Semantic roles & 50–950 ramp

primary
#F8F552
secondary
#2A2DC4
accent
#04E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F8F552

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

Preview Lab → · Contrast checker → · Palette generator →

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