#8A3281#8A3281

#8A3281 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.3% C 0.154 H 331.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8A3281
RGBrgb(138, 50, 129)
HSLhsl(306, 47%, 37%)
HSVhsv(306, 64%, 54%)
CMYKcmyk(0%, 63.8%, 6.5%, 45.9%)
CIE-LABlab(36.50, 47.37, -26.37)
CIE-LCHlch(36.50, 54.21, 330.90°)
OKLaboklab(47.25% 0.1355 -0.0722)
OKLCHoklch(47.25% 0.154 331.9)
XYZxyz(15.5843, 9.2706, 21.7332)
Luminance0.0927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3281 #328A3B
analogous
#67328A #8A3281 #8A3255
triadic
#8A3281 #818A32 #32818A
tetradic
#8A3281 #8A6732 #328A3B #32558A
square
#8A3281 #8A6732 #328A3B #32558A
split-complementary
#8A3281 #558A32 #328A67
monochromatic
#30112D #5D2257 #8A3281 #B742AB #CA6CC0

Accessibility & contrast

On white

7.36
#8A3281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A3281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3281
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3281#FFFFFF#000000##FFFFFF
##8A32811.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4E83
Deuteranopia (green-blind)
#4B5A7F
Tritanopia (blue-blind)
#903A55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3281;
/* rgb */ color: rgb(138, 50, 129);
/* oklch */ color: oklch(47.3% 0.154 331.9);
Tailwind
colors: {
  custom: {
    50: '#af70a6',
    500: '#8a3281',
    950: '#000000',
  },
}
SCSS
$custom: #8a3281;
$custom-light: #af70a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3281",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 129
  },
  "hsl": {
    "h": 306.136,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47253,
    "c": 0.15358,
    "h": 331.9
  },
  "luminance": 0.09269
}

Semantic roles & 50–950 ramp

primary
#8A3281
secondary
#66B26E
accent
#D65F51
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3281

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

Preview Lab → · Contrast checker → · Palette generator →

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