#F28AFD#F28AFD

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

Color values

HEX#F28AFD
RGBrgb(242, 138, 253)
HSLhsl(294, 97%, 77%)
HSVhsv(294, 45%, 99%)
CMYKcmyk(4.3%, 45.5%, 0%, 0.8%)
CIE-LABlab(72.33, 56.23, -40.87)
CIE-LCHlch(72.33, 69.51, 323.99°)
OKLaboklab(78.46% 0.1525 -0.1124)
OKLCHoklch(78.46% 0.189 323.6)
XYZxyz(63.4343, 44.1489, 98.0897)
Luminance0.4415 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28AFD #95FD8A
analogous
#B98AFD #F28AFD #FD8ACF
triadic
#F28AFD #FDF28A #8AFDF2
tetradic
#F28AFD #FDB98A #95FD8A #8ACFFD
square
#F28AFD #FDB98A #95FD8A #8ACFFD
split-complementary
#F28AFD #CFFD8A #8AFDB9
monochromatic
#E512FB #EB4EFC #F28AFD #F9C6FE #FCE1FE

Accessibility & contrast

On white

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

On black

9.83
#F28AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28AFD
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28AFD#FFFFFF#000000##000000
##F28AFD1.002.149.839.83
#FFFFFF2.141.0021.0021.00
#0000009.8321.001.001.00
##0000009.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f28afd;
/* rgb */ color: rgb(242, 138, 253);
/* oklch */ color: oklch(78.5% 0.189 323.6);
Tailwind
colors: {
  custom: {
    50: '#f8affe',
    500: '#f28afd',
    950: '#000000',
  },
}
SCSS
$custom: #f28afd;
$custom-light: #f8affe;
$custom-dark: #000000;
JSON
{
  "hex": "#f28afd",
  "rgb": {
    "r": 242,
    "g": 138,
    "b": 253
  },
  "hsl": {
    "h": 294.261,
    "s": 96.639,
    "l": 76.667
  },
  "oklch": {
    "l": 0.78456,
    "c": 0.18944,
    "h": 323.6
  },
  "luminance": 0.44146
}

Semantic roles & 50–950 ramp

primary
#F28AFD
secondary
#D8F7D4
accent
#E60016
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171118
muted
#858086

Preview Lab

Preview with #F28AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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