#8F2FA7#8F2FA7

#8F2FA7 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.9% C 0.194 H 318.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8F2FA7
RGBrgb(143, 47, 167)
HSLhsl(288, 56%, 42%)
HSVhsv(288, 72%, 65%)
CMYKcmyk(14.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(39.01, 56.87, -45.46)
CIE-LCHlch(39.01, 72.81, 321.36°)
OKLaboklab(49.92% 0.1456 -0.1275)
OKLCHoklch(49.92% 0.194 318.8)
XYZxyz(19.3183, 10.6636, 37.5924)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2FA7 #47A72F
analogous
#532FA7 #8F2FA7 #A72F83
triadic
#8F2FA7 #A78F2F #2FA78F
tetradic
#8F2FA7 #A7532F #47A72F #2F83A7
square
#8F2FA7 #A7532F #47A72F #2F83A7
split-complementary
#8F2FA7 #83A72F #2FA753
monochromatic
#3D1447 #662277 #8F2FA7 #B148CB #C578D9

Accessibility & contrast

On white

6.70
#8F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8F2FA7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2FA7#FFFFFF#000000##FFFFFF
##8F2FA71.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#365FA4
Tritanopia (blue-blind)
#8F4668
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f2fa7;
/* rgb */ color: rgb(143, 47, 167);
/* oklch */ color: oklch(49.9% 0.194 318.8);
Tailwind
colors: {
  custom: {
    50: '#b371c2',
    500: '#8f2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8f2fa7;
$custom-light: #b371c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2fa7",
  "rgb": {
    "r": 143,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 288,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49918,
    "c": 0.19358,
    "h": 318.8
  },
  "luminance": 0.10663
}

Semantic roles & 50–950 ramp

primary
#8F2FA7
secondary
#81C171
accent
#DF4867
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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