#F28CF7#F28CF7

#F28CF7 is a light, vivid purple. Relative luminance 0.443; OKLCH L 78.5% C 0.181 H 325.4°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#F28CF7
RGBrgb(242, 140, 247)
HSLhsl(297, 87%, 76%)
HSVhsv(297, 43%, 97%)
CMYKcmyk(2%, 43.3%, 0%, 3.1%)
CIE-LABlab(72.46, 54.14, -37.39)
CIE-LCHlch(72.46, 65.80, 325.37°)
OKLaboklab(78.47% 0.1487 -0.1025)
OKLCHoklch(78.47% 0.181 325.4)
XYZxyz(62.7831, 44.3517, 93.2313)
Luminance0.4435 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F28CF7 #91F78C
analogous
#BC8CF7 #F28CF7 #F78CC6
triadic
#F28CF7 #F7F28C #8CF7F2
tetradic
#F28CF7 #F7BC8C #91F78C #8CC6F7
square
#F28CF7 #F7BC8C #91F78C #8CC6F7
split-complementary
#F28CF7 #C6F78C #8CF7BC
monochromatic
#E51AEF #EC53F3 #F28CF7 #F8C5FB #FCE2FD

Accessibility & contrast

On white

2.13
#F28CF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#F28CF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F28CF7
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F28CF7#FFFFFF#000000##000000
##F28CF71.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#81AAFB
Deuteranopia (green-blind)
#9EB6F4
Tritanopia (blue-blind)
#F798B6
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #f28cf7;
/* rgb */ color: rgb(242, 140, 247);
/* oklch */ color: oklch(78.5% 0.181 325.4);
Tailwind
colors: {
  custom: {
    50: '#f8b0fa',
    500: '#f28cf7',
    950: '#000000',
  },
}
SCSS
$custom: #f28cf7;
$custom-light: #f8b0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#f28cf7",
  "rgb": {
    "r": 242,
    "g": 140,
    "b": 247
  },
  "hsl": {
    "h": 297.196,
    "s": 86.992,
    "l": 75.882
  },
  "oklch": {
    "l": 0.78475,
    "c": 0.18057,
    "h": 325.4
  },
  "luminance": 0.44349
}

Semantic roles & 50–950 ramp

primary
#F28CF7
secondary
#D7F5D6
accent
#E4020D
background
#FFFBFF
surface
#FFF6FF
border
#D7D0D7
text
#171117
muted
#858085

Preview Lab

Preview with #F28CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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