#F28EF2#F28EF2

#F28EF2 is a light, vivid purple. Relative luminance 0.446; OKLCH L 78.5% C 0.173 H 327.1°. Best body text is #000000 at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#F28EF2
RGBrgb(242, 142, 242)
HSLhsl(300, 79%, 75%)
HSVhsv(300, 41%, 95%)
CMYKcmyk(0%, 41.3%, 0%, 5.1%)
CIE-LABlab(72.65, 52.25, -34.37)
CIE-LCHlch(72.65, 62.54, 326.66°)
OKLaboklab(78.55% 0.1449 -0.0939)
OKLCHoklch(78.55% 0.173 327.1)
XYZxyz(62.3168, 44.6370, 89.3205)
Luminance0.4463 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28EF2 #8EF28E
analogous
#C08EF2 #F28EF2 #F28EC0
triadic
#F28EF2 #F2F28E #8EF2F2
tetradic
#F28EF2 #F2C08E #8EF28E #8EC0F2
square
#F28EF2 #F2C08E #8EF28E #8EC0F2
split-complementary
#F28EF2 #C0F28E #8EF2C0
monochromatic
#E520E5 #EC57EC #F28EF2 #F8C5F8 #FCE4FC

Accessibility & contrast

On white

2.12
#F28EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.93
#F28EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28EF2
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28EF2#FFFFFF#000000##000000
##F28EF21.002.129.939.93
#FFFFFF2.121.0021.0021.00
#0000009.9321.001.001.00
##0000009.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AAF6
Deuteranopia (green-blind)
#A1B7EF
Tritanopia (blue-blind)
#F898B5
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #f28ef2;
/* rgb */ color: rgb(242, 142, 242);
/* oklch */ color: oklch(78.5% 0.173 327.1);
Tailwind
colors: {
  custom: {
    50: '#f8b1f6',
    500: '#f28ef2',
    950: '#000000',
  },
}
SCSS
$custom: #f28ef2;
$custom-light: #f8b1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#f28ef2",
  "rgb": {
    "r": 242,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 300,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.7855,
    "c": 0.17266,
    "h": 327.1
  },
  "luminance": 0.44634
}

Semantic roles & 50–950 ramp

primary
#F28EF2
secondary
#D7F4D7
accent
#DC0A0A
background
#FFFBFF
surface
#FFF6FE
border
#D7D0D6
text
#171117
muted
#858085

Preview Lab

Preview with #F28EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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