#F8F152#F8F152

#F8F152 is a very light, vivid yellow. Relative luminance 0.835; OKLCH L 93.6% C 0.173 H 106.8°. Best body text is #000000 at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#F8F152
RGBrgb(248, 241, 82)
HSLhsl(57, 92%, 65%)
HSVhsv(57, 67%, 97%)
CMYKcmyk(0%, 2.8%, 66.9%, 2.7%)
CIE-LABlab(93.22, -15.65, 74.03)
CIE-LCHlch(93.22, 75.66, 101.94°)
OKLaboklab(93.62% -0.0501 0.1657)
OKLCHoklch(93.62% 0.173 106.8)
XYZxyz(71.6924, 83.4787, 20.3175)
Luminance0.8348 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F152 #5259F8
analogous
#F89E52 #F8F152 #ACF852
triadic
#F8F152 #52F8F1 #F152F8
tetradic
#F8F152 #52F89E #5259F8 #F852AC
square
#F8F152 #52F89E #5259F8 #F852AC
split-complementary
#F8F152 #52ACF8 #9E52F8
monochromatic
#C8BF08 #F6EC17 #F8F152 #FAF68D #FDFBC8

Accessibility & contrast

On white

1.19
#F8F152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.70
#F8F152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F152
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F152#FFFFFF#000000##000000
##F8F1521.001.1917.7017.70
#FFFFFF1.191.0021.0021.00
#00000017.7021.001.001.00
##00000017.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE83A
Deuteranopia (green-blind)
#FFEE5D
Tritanopia (blue-blind)
#FFE2D1
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f8f152;
/* rgb */ color: rgb(248, 241, 82);
/* oklch */ color: oklch(93.6% 0.173 106.8);
Tailwind
colors: {
  custom: {
    50: '#fef58b',
    500: '#f8f152',
    950: '#000000',
  },
}
SCSS
$custom: #f8f152;
$custom-light: #fef58b;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f152",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 82
  },
  "hsl": {
    "h": 57.47,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.9362,
    "c": 0.17306,
    "h": 106.8
  },
  "luminance": 0.83476
}

Semantic roles & 50–950 ramp

primary
#F8F152
secondary
#2A31C4
accent
#0AE600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F8F152

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

Preview Lab → · Contrast checker → · Palette generator →

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