#F28EF8#F28EF8

#F28EF8 is a light, vivid purple. Relative luminance 0.450; OKLCH L 78.8% C 0.178 H 325.0°. Best body text is #000000 at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#F28EF8
RGBrgb(242, 142, 248)
HSLhsl(297, 88%, 76%)
HSVhsv(297, 43%, 97%)
CMYKcmyk(2.4%, 42.7%, 0%, 2.7%)
CIE-LABlab(72.89, 53.32, -37.27)
CIE-LCHlch(72.89, 65.06, 325.05°)
OKLaboklab(78.81% 0.1461 -0.1021)
OKLCHoklch(78.81% 0.178 325)
XYZxyz(63.2327, 45.0034, 94.1445)
Luminance0.4500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28EF8 #94F88E
analogous
#BD8EF8 #F28EF8 #F88EC9
triadic
#F28EF8 #F8F28E #8EF8F2
tetradic
#F28EF8 #F8BD8E #94F88E #8EC9F8
square
#F28EF8 #F8BD8E #94F88E #8EC9F8
split-complementary
#F28EF8 #C9F88E #8EF8BD
monochromatic
#E51BF1 #EB54F4 #F28EF8 #F9C8FC #FCE2FD

Accessibility & contrast

On white

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

On black

10.00
#F28EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28EF8
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28EF8#FFFFFF#000000##000000
##F28EF81.002.1010.0010.00
#FFFFFF2.101.0021.0021.00
#00000010.0021.001.001.00
##00000010.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ABFC
Deuteranopia (green-blind)
#9FB7F5
Tritanopia (blue-blind)
#F799B8
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #f28ef8;
/* rgb */ color: rgb(242, 142, 248);
/* oklch */ color: oklch(78.8% 0.178 325.0);
Tailwind
colors: {
  custom: {
    50: '#f8b1fb',
    500: '#f28ef8',
    950: '#000000',
  },
}
SCSS
$custom: #f28ef8;
$custom-light: #f8b1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#f28ef8",
  "rgb": {
    "r": 242,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 296.604,
    "s": 88.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.7881,
    "c": 0.17824,
    "h": 325
  },
  "luminance": 0.45001
}

Semantic roles & 50–950 ramp

primary
#F28EF8
secondary
#D8F5D6
accent
#E5010D
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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