#F28AFB#F28AFB

#F28AFB is a light, vivid purple. Relative luminance 0.440; OKLCH L 78.4% C 0.188 H 324.2°. Best body text is #000000 at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#F28AFB
RGBrgb(242, 138, 251)
HSLhsl(295, 93%, 76%)
HSVhsv(295, 45%, 98%)
CMYKcmyk(3.6%, 45%, 0%, 1.6%)
CIE-LABlab(72.24, 55.86, -39.91)
CIE-LCHlch(72.24, 68.66, 324.45°)
OKLaboklab(78.37% 0.1522 -0.1097)
OKLCHoklch(78.37% 0.188 324.2)
XYZxyz(63.1174, 44.0221, 96.4205)
Luminance0.4402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28AFB #93FB8A
analogous
#BA8AFB #F28AFB #FB8ACC
triadic
#F28AFB #FBF28A #8AFBF2
tetradic
#F28AFB #FBBA8A #93FB8A #8ACCFB
square
#F28AFB #FBBA8A #93FB8A #8ACCFB
split-complementary
#F28AFB #CCFB8A #8AFBBA
monochromatic
#E514F7 #EB4FF9 #F28AFB #F9C5FD #FCE1FE

Accessibility & contrast

On white

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

On black

9.80
#F28AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28AFB
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28AFB#FFFFFF#000000##000000
##F28AFB1.002.149.809.80
#FFFFFF2.141.0021.0021.00
#0000009.8021.001.001.00
##0000009.8021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f28afb;
/* rgb */ color: rgb(242, 138, 251);
/* oklch */ color: oklch(78.4% 0.188 324.2);
Tailwind
colors: {
  custom: {
    50: '#f8affd',
    500: '#f28afb',
    950: '#000000',
  },
}
SCSS
$custom: #f28afb;
$custom-light: #f8affd;
$custom-dark: #000000;
JSON
{
  "hex": "#f28afb",
  "rgb": {
    "r": 242,
    "g": 138,
    "b": 251
  },
  "hsl": {
    "h": 295.221,
    "s": 93.388,
    "l": 76.275
  },
  "oklch": {
    "l": 0.78366,
    "c": 0.18756,
    "h": 324.2
  },
  "luminance": 0.44019
}

Semantic roles & 50–950 ramp

primary
#F28AFB
secondary
#D7F6D5
accent
#E60012
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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