#F28DF7#F28DF7

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

Color values

HEX#F28DF7
RGBrgb(242, 141, 247)
HSLhsl(297, 87%, 76%)
HSVhsv(297, 43%, 97%)
CMYKcmyk(2%, 42.9%, 0%, 3.1%)
CIE-LABlab(72.66, 53.64, -37.09)
CIE-LCHlch(72.66, 65.22, 325.34°)
OKLaboklab(78.62% 0.1473 -0.1016)
OKLCHoklch(78.62% 0.179 325.4)
XYZxyz(62.9299, 44.6453, 93.2803)
Luminance0.4464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28DF7 #92F78D
analogous
#BD8DF7 #F28DF7 #F78DC7
triadic
#F28DF7 #F7F28D #8DF7F2
tetradic
#F28DF7 #F7BD8D #92F78D #8DC7F7
square
#F28DF7 #F7BD8D #92F78D #8DC7F7
split-complementary
#F28DF7 #C7F78D #8DF7BD
monochromatic
#E51BEF #EB54F3 #F28DF7 #F9C6FB #FCE2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F28DF7#FFFFFF#000000##000000
##F28DF71.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)
#82AAFB
Deuteranopia (green-blind)
#9EB7F4
Tritanopia (blue-blind)
#F798B7
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #f28df7;
/* rgb */ color: rgb(242, 141, 247);
/* oklch */ color: oklch(78.6% 0.179 325.4);
Tailwind
colors: {
  custom: {
    50: '#f8b1fa',
    500: '#f28df7',
    950: '#000000',
  },
}
SCSS
$custom: #f28df7;
$custom-light: #f8b1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#f28df7",
  "rgb": {
    "r": 242,
    "g": 141,
    "b": 247
  },
  "hsl": {
    "h": 297.17,
    "s": 86.885,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7862,
    "c": 0.17894,
    "h": 325.4
  },
  "luminance": 0.44642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F28DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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