#8A3287#8A3287

#8A3287 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 47.6% C 0.159 H 329.1°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A3287
RGBrgb(138, 50, 135)
HSLhsl(302, 47%, 37%)
HSVhsv(302, 64%, 54%)
CMYKcmyk(0%, 63.8%, 2.2%, 45.9%)
CIE-LABlab(36.81, 48.43, -29.59)
CIE-LCHlch(36.81, 56.75, 328.57°)
OKLaboklab(47.58% 0.1362 -0.0815)
OKLCHoklch(47.58% 0.159 329.1)
XYZxyz(15.9949, 9.4348, 23.8956)
Luminance0.0943 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3287 #328A35
analogous
#61328A #8A3287 #8A325B
triadic
#8A3287 #878A32 #32878A
tetradic
#8A3287 #8A6132 #328A35 #325B8A
square
#8A3287 #8A6132 #328A35 #325B8A
split-complementary
#8A3287 #5B8A32 #328A61
monochromatic
#30112F #5D225B #8A3287 #B742B3 #CA6CC7

Accessibility & contrast

On white

7.27
#8A3287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A3287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3287
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3287#FFFFFF#000000##FFFFFF
##8A32871.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294F8A
Deuteranopia (green-blind)
#485B85
Tritanopia (blue-blind)
#8F3C58
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a3287;
/* rgb */ color: rgb(138, 50, 135);
/* oklch */ color: oklch(47.6% 0.159 329.1);
Tailwind
colors: {
  custom: {
    50: '#af70aa',
    500: '#8a3287',
    950: '#000000',
  },
}
SCSS
$custom: #8a3287;
$custom-light: #af70aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3287",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 135
  },
  "hsl": {
    "h": 302.045,
    "s": 46.809,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47577,
    "c": 0.15869,
    "h": 329.1
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#8A3287
secondary
#66B269
accent
#D65651
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3287

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

Preview Lab → · Contrast checker → · Palette generator →

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