#F28BF2#F28BF2

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

Color values

HEX#F28BF2
RGBrgb(242, 139, 242)
HSLhsl(300, 80%, 75%)
HSVhsv(300, 43%, 95%)
CMYKcmyk(0%, 42.6%, 0%, 5.1%)
CIE-LABlab(72.07, 53.75, -35.28)
CIE-LCHlch(72.07, 64.30, 326.72°)
OKLaboklab(78.11% 0.1491 -0.0964)
OKLCHoklch(78.11% 0.178 327.1)
XYZxyz(61.8764, 43.7563, 89.1737)
Luminance0.4375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28BF2 #8BF28B
analogous
#BF8BF2 #F28BF2 #F28BBF
triadic
#F28BF2 #F2F28B #8BF2F2
tetradic
#F28BF2 #F2BF8B #8BF28B #8BBFF2
square
#F28BF2 #F2BF8B #8BF28B #8BBFF2
split-complementary
#F28BF2 #BFF28B #8BF2BF
monochromatic
#E61DE6 #EC54EC #F28BF2 #F8C2F8 #FCE3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F28BF2#FFFFFF#000000##000000
##F28BF21.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)
#82A8F6
Deuteranopia (green-blind)
#9FB5EF
Tritanopia (blue-blind)
#F895B3
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #f28bf2;
/* rgb */ color: rgb(242, 139, 242);
/* oklch */ color: oklch(78.1% 0.178 327.1);
Tailwind
colors: {
  custom: {
    50: '#f8aff6',
    500: '#f28bf2',
    950: '#000000',
  },
}
SCSS
$custom: #f28bf2;
$custom-light: #f8aff6;
$custom-dark: #000000;
JSON
{
  "hex": "#f28bf2",
  "rgb": {
    "r": 242,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 300,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.78111,
    "c": 0.1776,
    "h": 327.1
  },
  "luminance": 0.43753
}

Semantic roles & 50–950 ramp

primary
#F28BF2
secondary
#D7F4D7
accent
#DC0909
background
#FFFBFF
surface
#FFF6FE
border
#D7D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #F28BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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