#F28AF5#F28AF5

#F28AF5 is a light, vivid purple. Relative luminance 0.436; OKLCH L 78.1% C 0.182 H 326.1°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#F28AF5
RGBrgb(242, 138, 245)
HSLhsl(298, 84%, 75%)
HSVhsv(298, 44%, 96%)
CMYKcmyk(1.2%, 43.7%, 0%, 3.9%)
CIE-LABlab(71.99, 54.78, -37.03)
CIE-LCHlch(71.99, 66.13, 325.94°)
OKLaboklab(78.1% 0.1511 -0.1014)
OKLCHoklch(78.1% 0.182 326.1)
XYZxyz(62.1866, 43.6498, 91.5181)
Luminance0.4365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28AF5 #8DF58A
analogous
#BD8AF5 #F28AF5 #F58AC2
triadic
#F28AF5 #F5F28A #8AF5F2
tetradic
#F28AF5 #F5BD8A #8DF58A #8AC2F5
square
#F28AF5 #F5BD8A #8DF58A #8AC2F5
split-complementary
#F28AF5 #C2F58A #8AF5BD
monochromatic
#E519EB #EC52F0 #F28AF5 #F8C2FA #FCE3FD

Accessibility & contrast

On white

2.16
#F28AF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.73
#F28AF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28AF5
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28AF5#FFFFFF#000000##000000
##F28AF51.002.169.739.73
#FFFFFF2.161.0021.0021.00
#0000009.7321.001.001.00
##0000009.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A8F9
Deuteranopia (green-blind)
#9DB5F2
Tritanopia (blue-blind)
#F795B4
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #f28af5;
/* rgb */ color: rgb(242, 138, 245);
/* oklch */ color: oklch(78.1% 0.182 326.1);
Tailwind
colors: {
  custom: {
    50: '#f8aff8',
    500: '#f28af5',
    950: '#000000',
  },
}
SCSS
$custom: #f28af5;
$custom-light: #f8aff8;
$custom-dark: #000000;
JSON
{
  "hex": "#f28af5",
  "rgb": {
    "r": 242,
    "g": 138,
    "b": 245
  },
  "hsl": {
    "h": 298.318,
    "s": 84.252,
    "l": 75.098
  },
  "oklch": {
    "l": 0.78098,
    "c": 0.18198,
    "h": 326.1
  },
  "luminance": 0.43647
}

Semantic roles & 50–950 ramp

primary
#F28AF5
secondary
#D7F5D6
accent
#E1050B
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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