#F28AF2#F28AF2

#F28AF2 is a light, vivid purple. Relative luminance 0.435; OKLCH L 78.0% C 0.179 H 327.1°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#F28AF2
RGBrgb(242, 138, 242)
HSLhsl(300, 80%, 75%)
HSVhsv(300, 43%, 95%)
CMYKcmyk(0%, 43%, 0%, 5.1%)
CIE-LABlab(71.87, 54.25, -35.58)
CIE-LCHlch(71.87, 64.88, 326.74°)
OKLaboklab(77.97% 0.1505 -0.0973)
OKLCHoklch(77.97% 0.179 327.1)
XYZxyz(61.7323, 43.4680, 89.1257)
Luminance0.4346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28AF2 #8AF28A
analogous
#BE8AF2 #F28AF2 #F28ABE
triadic
#F28AF2 #F2F28A #8AF2F2
tetradic
#F28AF2 #F2BE8A #8AF28A #8ABEF2
square
#F28AF2 #F2BE8A #8AF28A #8ABEF2
split-complementary
#F28AF2 #BEF28A #8AF2BE
monochromatic
#E61CE6 #EC53EC #F28AF2 #F8C1F8 #FCE3FC

Accessibility & contrast

On white

2.17
#F28AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#F28AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28AF2
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28AF2#FFFFFF#000000##000000
##F28AF21.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A8F6
Deuteranopia (green-blind)
#9EB5EF
Tritanopia (blue-blind)
#F894B3
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #f28af2;
/* rgb */ color: rgb(242, 138, 242);
/* oklch */ color: oklch(78.0% 0.179 327.1);
Tailwind
colors: {
  custom: {
    50: '#f8aff6',
    500: '#f28af2',
    950: '#000000',
  },
}
SCSS
$custom: #f28af2;
$custom-light: #f8aff6;
$custom-dark: #000000;
JSON
{
  "hex": "#f28af2",
  "rgb": {
    "r": 242,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 300,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.77967,
    "c": 0.17923,
    "h": 327.1
  },
  "luminance": 0.43465
}

Semantic roles & 50–950 ramp

primary
#F28AF2
secondary
#D7F4D7
accent
#DC0909
background
#FFFAFF
surface
#FFF5FE
border
#D7CFD6
text
#171117
muted
#858085

Preview Lab

Preview with #F28AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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