#F28EF7#F28EF7

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

Color values

HEX#F28EF7
RGBrgb(242, 142, 247)
HSLhsl(297, 87%, 76%)
HSVhsv(297, 43%, 97%)
CMYKcmyk(2%, 42.5%, 0%, 3.1%)
CIE-LABlab(72.85, 53.14, -36.79)
CIE-LCHlch(72.85, 64.63, 325.31°)
OKLaboklab(78.77% 0.1459 -0.1008)
OKLCHoklch(78.77% 0.177 325.4)
XYZxyz(63.0780, 44.9415, 93.3296)
Luminance0.4494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28EF7 #93F78E
analogous
#BE8EF7 #F28EF7 #F78EC8
triadic
#F28EF7 #F7F28E #8EF7F2
tetradic
#F28EF7 #F7BE8E #93F78E #8EC8F7
square
#F28EF7 #F7BE8E #93F78E #8EC8F7
split-complementary
#F28EF7 #C8F78E #8EF7BE
monochromatic
#E51CEF #EB55F3 #F28EF7 #F9C7FB #FCE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F28EF7#FFFFFF#000000##000000
##F28EF71.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)
#84ABFB
Deuteranopia (green-blind)
#9FB7F4
Tritanopia (blue-blind)
#F799B7
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #f28ef7;
/* rgb */ color: rgb(242, 142, 247);
/* oklch */ color: oklch(78.8% 0.177 325.4);
Tailwind
colors: {
  custom: {
    50: '#f8b1fa',
    500: '#f28ef7',
    950: '#000000',
  },
}
SCSS
$custom: #f28ef7;
$custom-light: #f8b1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#f28ef7",
  "rgb": {
    "r": 242,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 297.143,
    "s": 86.777,
    "l": 76.275
  },
  "oklch": {
    "l": 0.78766,
    "c": 0.1773,
    "h": 325.4
  },
  "luminance": 0.44939
}

Semantic roles & 50–950 ramp

primary
#F28EF7
secondary
#D7F5D6
accent
#E3020D
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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