#F28AFC#F28AFC

#F28AFC is a light, vivid purple. Relative luminance 0.441; OKLCH L 78.4% C 0.189 H 323.9°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#F28AFC
RGBrgb(242, 138, 252)
HSLhsl(295, 95%, 76%)
HSVhsv(295, 45%, 99%)
CMYKcmyk(4%, 45.2%, 0%, 1.2%)
CIE-LABlab(72.29, 56.04, -40.39)
CIE-LCHlch(72.29, 69.08, 324.22°)
OKLaboklab(78.41% 0.1523 -0.111)
OKLCHoklch(78.41% 0.189 323.9)
XYZxyz(63.2754, 44.0853, 97.2529)
Luminance0.4408 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28AFC #94FC8A
analogous
#B98AFC #F28AFC #FC8ACD
triadic
#F28AFC #FCF28A #8AFCF2
tetradic
#F28AFC #FCB98A #94FC8A #8ACDFC
square
#F28AFC #FCB98A #94FC8A #8ACDFC
split-complementary
#F28AFC #CDFC8A #8AFCB9
monochromatic
#E513F9 #EB4EFA #F28AFC #F9C6FE #FCE1FE

Accessibility & contrast

On white

2.14
#F28AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.82
#F28AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28AFC
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28AFC#FFFFFF#000000##000000
##F28AFC1.002.149.829.82
#FFFFFF2.141.0021.0021.00
#0000009.8221.001.001.00
##0000009.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA9FF
Deuteranopia (green-blind)
#9AB6F9
Tritanopia (blue-blind)
#F697B7
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #f28afc;
/* rgb */ color: rgb(242, 138, 252);
/* oklch */ color: oklch(78.4% 0.189 323.9);
Tailwind
colors: {
  custom: {
    50: '#f8affd',
    500: '#f28afc',
    950: '#000000',
  },
}
SCSS
$custom: #f28afc;
$custom-light: #f8affd;
$custom-dark: #000000;
JSON
{
  "hex": "#f28afc",
  "rgb": {
    "r": 242,
    "g": 138,
    "b": 252
  },
  "hsl": {
    "h": 294.737,
    "s": 95,
    "l": 76.471
  },
  "oklch": {
    "l": 0.78411,
    "c": 0.1885,
    "h": 323.9
  },
  "luminance": 0.44082
}

Semantic roles & 50–950 ramp

primary
#F28AFC
secondary
#D8F6D5
accent
#E60014
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #F28AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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