#F8F252#F8F252

#F8F252 is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 93.8% C 0.174 H 107.2°. Best body text is #000000 at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#F8F252
RGBrgb(248, 242, 82)
HSLhsl(58, 92%, 65%)
HSVhsv(58, 67%, 97%)
CMYKcmyk(0%, 2.4%, 66.9%, 2.7%)
CIE-LABlab(93.48, -16.13, 74.29)
CIE-LCHlch(93.48, 76.02, 102.25°)
OKLaboklab(93.83% -0.0515 0.1662)
OKLCHoklch(93.83% 0.174 107.2)
XYZxyz(71.9892, 84.0723, 20.4165)
Luminance0.8407 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F252 #5258F8
analogous
#F89F52 #F8F252 #ABF852
triadic
#F8F252 #52F8F2 #F252F8
tetradic
#F8F252 #52F89F #5258F8 #F852AB
square
#F8F252 #52F89F #5258F8 #F852AB
split-complementary
#F8F252 #52ABF8 #9F52F8
monochromatic
#C8C108 #F6EE17 #F8F252 #FAF68D #FDFBC8

Accessibility & contrast

On white

1.18
#F8F252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.81
#F8F252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F252
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F252#FFFFFF#000000##000000
##F8F2521.001.1817.8117.81
#FFFFFF1.181.0021.0021.00
#00000017.8121.001.001.00
##00000017.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE93A
Deuteranopia (green-blind)
#FFEF5D
Tritanopia (blue-blind)
#FFE3D2
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8f252;
/* rgb */ color: rgb(248, 242, 82);
/* oklch */ color: oklch(93.8% 0.174 107.2);
Tailwind
colors: {
  custom: {
    50: '#fef68b',
    500: '#f8f252',
    950: '#000000',
  },
}
SCSS
$custom: #f8f252;
$custom-light: #fef68b;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f252",
  "rgb": {
    "r": 248,
    "g": 242,
    "b": 82
  },
  "hsl": {
    "h": 57.831,
    "s": 92.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.93826,
    "c": 0.17399,
    "h": 107.2
  },
  "luminance": 0.8407
}

Semantic roles & 50–950 ramp

primary
#F8F252
secondary
#2A30C4
accent
#08E600
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F

Preview Lab

Preview with #F8F252

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

Preview Lab → · Contrast checker → · Palette generator →

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