#8F2FA6#8F2FA6

#8F2FA6 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.193 H 319.1°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8F2FA6
RGBrgb(143, 47, 166)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(13.9%, 71.7%, 0%, 34.9%)
CIE-LABlab(38.94, 56.68, -44.97)
CIE-LCHlch(38.94, 72.35, 321.57°)
OKLaboklab(49.85% 0.1457 -0.1261)
OKLCHoklch(49.85% 0.193 319.1)
XYZxyz(19.2262, 10.6268, 37.1074)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2FA6 #46A62F
analogous
#532FA6 #8F2FA6 #A62F82
triadic
#8F2FA6 #A68F2F #2FA68F
tetradic
#8F2FA6 #A6532F #46A62F #2F82A6
square
#8F2FA6 #A6532F #46A62F #2F82A6
split-complementary
#8F2FA6 #82A62F #2FA653
monochromatic
#3D1447 #662176 #8F2FA6 #B247CB #C677D8

Accessibility & contrast

On white

6.72
#8F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8F2FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2FA6
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2FA6#FFFFFF#000000##FFFFFF
##8F2FA61.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A9
Deuteranopia (green-blind)
#375FA3
Tritanopia (blue-blind)
#8F4667
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f2fa6;
/* rgb */ color: rgb(143, 47, 166);
/* oklch */ color: oklch(49.9% 0.193 319.1);
Tailwind
colors: {
  custom: {
    50: '#b371c1',
    500: '#8f2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8f2fa6;
$custom-light: #b371c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2fa6",
  "rgb": {
    "r": 143,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 288.403,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49852,
    "c": 0.19269,
    "h": 319.1
  },
  "luminance": 0.10626
}

Semantic roles & 50–950 ramp

primary
#8F2FA6
secondary
#80C170
accent
#DF4966
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

#8F2FA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva