#8A3BA7#8A3BA7

#8A3BA7 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.6% C 0.176 H 315.8°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA7
RGBrgb(138, 59, 167)
HSLhsl(284, 48%, 44%)
HSVhsv(284, 65%, 65%)
CMYKcmyk(17.4%, 64.7%, 0%, 34.5%)
CIE-LABlab(40.12, 50.57, -43.73)
CIE-LCHlch(40.12, 66.85, 319.15°)
OKLaboklab(50.56% 0.126 -0.1227)
OKLCHoklch(50.56% 0.176 315.8)
XYZxyz(19.0192, 11.3219, 37.7352)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA7 #58A73B
analogous
#543BA7 #8A3BA7 #A73B8E
triadic
#8A3BA7 #A78A3B #3BA78A
tetradic
#8A3BA7 #A7543B #58A73B #3B8EA7
square
#8A3BA7 #A7543B #58A73B #3B8EA7
split-complementary
#8A3BA7 #8EA73B #3BA754
monochromatic
#3F1B4D #652B7A #8A3BA7 #A85AC5 #C088D5

Accessibility & contrast

On white

6.43
#8A3BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A3BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA7
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA7#FFFFFF#000000##FFFFFF
##8A3BA71.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115AAA
Deuteranopia (green-blind)
#3A61A4
Tritanopia (blue-blind)
#884F6C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ba7;
/* rgb */ color: rgb(138, 59, 167);
/* oklch */ color: oklch(50.6% 0.176 315.8);
Tailwind
colors: {
  custom: {
    50: '#af76c2',
    500: '#8a3ba7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba7;
$custom-light: #af76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba7",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 167
  },
  "hsl": {
    "h": 283.889,
    "s": 47.788,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50563,
    "c": 0.17584,
    "h": 315.8
  },
  "luminance": 0.11321
}

Semantic roles & 50–950 ramp

primary
#8A3BA7
secondary
#90BF7F
accent
#D75075
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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