#8F34A2#8F34A2

#8F34A2 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.1% C 0.183 H 320.2°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8F34A2
RGBrgb(143, 52, 162)
HSLhsl(290, 51%, 42%)
HSVhsv(290, 68%, 64%)
CMYKcmyk(11.7%, 67.9%, 0%, 36.5%)
CIE-LABlab(39.42, 53.86, -41.81)
CIE-LCHlch(39.42, 68.19, 322.18°)
OKLaboklab(50.11% 0.1405 -0.1169)
OKLCHoklch(50.11% 0.183 320.2)
XYZxyz(19.0765, 10.9052, 35.2755)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F34A2 #47A234
analogous
#5834A2 #8F34A2 #A2347E
triadic
#8F34A2 #A28F34 #34A28F
tetradic
#8F34A2 #A25834 #47A234 #347EA2
square
#8F34A2 #A25834 #47A234 #347EA2
split-complementary
#8F34A2 #7EA234 #34A258
monochromatic
#3D1645 #662574 #8F34A2 #B14DC6 #C57CD5

Accessibility & contrast

On white

6.60
#8F34A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8F34A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F34A2
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F34A2#FFFFFF#000000##FFFFFF
##8F34A21.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D57A5
Deuteranopia (green-blind)
#3E609F
Tritanopia (blue-blind)
#904767
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8f34a2;
/* rgb */ color: rgb(143, 52, 162);
/* oklch */ color: oklch(50.1% 0.183 320.2);
Tailwind
colors: {
  custom: {
    50: '#b373be',
    500: '#8f34a2',
    950: '#000000',
  },
}
SCSS
$custom: #8f34a2;
$custom-light: #b373be;
$custom-dark: #000000;
JSON
{
  "hex": "#8f34a2",
  "rgb": {
    "r": 143,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 289.636,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50114,
    "c": 0.18277,
    "h": 320.2
  },
  "luminance": 0.10904
}

Semantic roles & 50–950 ramp

primary
#8F34A2
secondary
#81BE74
accent
#DB4D65
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8F34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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