#F28FF2#F28FF2

#F28FF2 is a light, vivid purple. Relative luminance 0.449; OKLCH L 78.7% C 0.171 H 327.0°. Best body text is #000000 at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#F28FF2
RGBrgb(242, 143, 242)
HSLhsl(300, 79%, 75%)
HSVhsv(300, 41%, 95%)
CMYKcmyk(0%, 40.9%, 0%, 5.1%)
CIE-LABlab(72.85, 51.74, -34.07)
CIE-LCHlch(72.85, 61.95, 326.64°)
OKLaboklab(78.7% 0.1435 -0.093)
OKLCHoklch(78.7% 0.171 327)
XYZxyz(62.4662, 44.9359, 89.3703)
Luminance0.4493 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28FF2 #8FF28F
analogous
#C08FF2 #F28FF2 #F28FC0
triadic
#F28FF2 #F2F28F #8FF2F2
tetradic
#F28FF2 #F2C08F #8FF28F #8FC0F2
square
#F28FF2 #F2C08F #8FF28F #8FC0F2
split-complementary
#F28FF2 #C0F28F #8FF2C0
monochromatic
#E521E5 #EC58EC #F28FF2 #F8C6F8 #FCE4FC

Accessibility & contrast

On white

2.10
#F28FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.99
#F28FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28FF2
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28FF2#FFFFFF#000000##000000
##F28FF21.002.109.999.99
#FFFFFF2.101.0021.0021.00
#0000009.9921.001.001.00
##0000009.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ABF6
Deuteranopia (green-blind)
#A2B7EF
Tritanopia (blue-blind)
#F899B5
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #f28ff2;
/* rgb */ color: rgb(242, 143, 242);
/* oklch */ color: oklch(78.7% 0.171 327.0);
Tailwind
colors: {
  custom: {
    50: '#f8b2f6',
    500: '#f28ff2',
    950: '#000000',
  },
}
SCSS
$custom: #f28ff2;
$custom-light: #f8b2f6;
$custom-dark: #000000;
JSON
{
  "hex": "#f28ff2",
  "rgb": {
    "r": 242,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 300,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.78697,
    "c": 0.17101,
    "h": 327
  },
  "luminance": 0.44933
}

Semantic roles & 50–950 ramp

primary
#F28FF2
secondary
#D7F4D7
accent
#DB0A0A
background
#FFFBFF
surface
#FFF6FE
border
#D7D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #F28FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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