#F28AF7#F28AF7

#F28AF7 is a light, vivid purple. Relative luminance 0.438; OKLCH L 78.2% C 0.184 H 325.5°. Best body text is #000000 at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#F28AF7
RGBrgb(242, 138, 247)
HSLhsl(297, 87%, 75%)
HSVhsv(297, 44%, 97%)
CMYKcmyk(2%, 44.1%, 0%, 3.1%)
CIE-LABlab(72.08, 55.14, -38.00)
CIE-LCHlch(72.08, 66.96, 325.43°)
OKLaboklab(78.19% 0.1515 -0.1042)
OKLCHoklch(78.19% 0.184 325.5)
XYZxyz(62.4935, 43.7725, 93.1348)
Luminance0.4377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28AF7 #8FF78A
analogous
#BB8AF7 #F28AF7 #F78AC5
triadic
#F28AF7 #F7F28A #8AF7F2
tetradic
#F28AF7 #F7BB8A #8FF78A #8AC5F7
square
#F28AF7 #F7BB8A #8FF78A #8AC5F7
split-complementary
#F28AF7 #C5F78A #8AF7BB
monochromatic
#E517EF #EC51F3 #F28AF7 #F8C3FB #FCE2FD

Accessibility & contrast

On white

2.15
#F28AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.75
#F28AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28AF7
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28AF7#FFFFFF#000000##000000
##F28AF71.002.159.759.75
#FFFFFF2.151.0021.0021.00
#0000009.7521.001.001.00
##0000009.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA8FB
Deuteranopia (green-blind)
#9CB5F4
Tritanopia (blue-blind)
#F796B5
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #f28af7;
/* rgb */ color: rgb(242, 138, 247);
/* oklch */ color: oklch(78.2% 0.184 325.5);
Tailwind
colors: {
  custom: {
    50: '#f8affa',
    500: '#f28af7',
    950: '#000000',
  },
}
SCSS
$custom: #f28af7;
$custom-light: #f8affa;
$custom-dark: #000000;
JSON
{
  "hex": "#f28af7",
  "rgb": {
    "r": 242,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 297.248,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.78186,
    "c": 0.18383,
    "h": 325.5
  },
  "luminance": 0.4377
}

Semantic roles & 50–950 ramp

primary
#F28AF7
secondary
#D7F5D6
accent
#E4020C
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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