#8F2FA5#8F2FA5

#8F2FA5 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.192 H 319.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8F2FA5
RGBrgb(143, 47, 165)
HSLhsl(289, 56%, 42%)
HSVhsv(289, 72%, 65%)
CMYKcmyk(13.3%, 71.5%, 0%, 35.3%)
CIE-LABlab(38.88, 56.49, -44.47)
CIE-LCHlch(38.88, 71.89, 321.79°)
OKLaboklab(49.79% 0.1458 -0.1246)
OKLCHoklch(49.79% 0.192 319.5)
XYZxyz(19.1349, 10.5902, 36.6262)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2FA5 #45A52F
analogous
#542FA5 #8F2FA5 #A52F80
triadic
#8F2FA5 #A58F2F #2FA58F
tetradic
#8F2FA5 #A5542F #45A52F #2F80A5
square
#8F2FA5 #A5542F #45A52F #2F80A5
split-complementary
#8F2FA5 #80A52F #2FA554
monochromatic
#3C1446 #662175 #8F2FA5 #B247CB #C676D8

Accessibility & contrast

On white

6.74
#8F2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8F2FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2FA5
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2FA5#FFFFFF#000000##FFFFFF
##8F2FA51.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A8
Deuteranopia (green-blind)
#385FA2
Tritanopia (blue-blind)
#8F4667
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f2fa5;
/* rgb */ color: rgb(143, 47, 165);
/* oklch */ color: oklch(49.8% 0.192 319.5);
Tailwind
colors: {
  custom: {
    50: '#b371c0',
    500: '#8f2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8f2fa5;
$custom-light: #b371c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2fa5",
  "rgb": {
    "r": 143,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 288.814,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49787,
    "c": 0.19179,
    "h": 319.5
  },
  "luminance": 0.10589
}

Semantic roles & 50–950 ramp

primary
#8F2FA5
secondary
#7FC070
accent
#DF4965
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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