#8A3BA9#8A3BA9

#8A3BA9 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.7% C 0.178 H 315.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#8A3BA9
RGBrgb(138, 59, 169)
HSLhsl(283, 48%, 45%)
HSVhsv(283, 65%, 66%)
CMYKcmyk(18.3%, 65.1%, 0%, 33.7%)
CIE-LABlab(40.24, 50.99, -44.73)
CIE-LCHlch(40.24, 67.82, 318.74°)
OKLaboklab(50.69% 0.1259 -0.1256)
OKLCHoklch(50.69% 0.178 315.1)
XYZxyz(19.2055, 11.3964, 38.7165)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BA9 #5AA93B
analogous
#533BA9 #8A3BA9 #A93B91
triadic
#8A3BA9 #A98A3B #3BA98A
tetradic
#8A3BA9 #A9533B #5AA93B #3B91A9
square
#8A3BA9 #A9533B #5AA93B #3B91A9
split-complementary
#8A3BA9 #91A93B #3BA953
monochromatic
#401B4E #652B7C #8A3BA9 #A85BC6 #C089D6

Accessibility & contrast

On white

6.40
#8A3BA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8A3BA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BA9
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BA9#FFFFFF#000000##FFFFFF
##8A3BA91.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5AAC
Deuteranopia (green-blind)
#3961A6
Tritanopia (blue-blind)
#88506D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ba9;
/* rgb */ color: rgb(138, 59, 169);
/* oklch */ color: oklch(50.7% 0.178 315.1);
Tailwind
colors: {
  custom: {
    50: '#af76c3',
    500: '#8a3ba9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ba9;
$custom-light: #af76c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ba9",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 169
  },
  "hsl": {
    "h": 283.091,
    "s": 48.246,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50691,
    "c": 0.17784,
    "h": 315.1
  },
  "luminance": 0.11396
}

Semantic roles & 50–950 ramp

primary
#8A3BA9
secondary
#92C080
accent
#D85076
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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