#8A31A2#8A31A2

#8A31A2 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.1% C 0.184 H 318.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8A31A2
RGBrgb(138, 49, 162)
HSLhsl(287, 54%, 41%)
HSVhsv(287, 70%, 64%)
CMYKcmyk(14.8%, 69.8%, 0%, 36.5%)
CIE-LABlab(38.22, 53.98, -43.78)
CIE-LCHlch(38.22, 69.50, 320.95°)
OKLaboklab(49.1% 0.1377 -0.1228)
OKLCHoklch(49.1% 0.184 318.3)
XYZxyz(18.1002, 10.2093, 35.1926)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31A2 #49A231
analogous
#5231A2 #8A31A2 #A23182
triadic
#8A31A2 #A28A31 #31A28A
tetradic
#8A31A2 #A25231 #49A231 #3182A2
square
#8A31A2 #A25231 #49A231 #3182A2
split-complementary
#8A31A2 #82A231 #31A252
monochromatic
#3A1544 #622373 #8A31A2 #AD48C8 #C277D6

Accessibility & contrast

On white

6.90
#8A31A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A31A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31A2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31A2#FFFFFF#000000##FFFFFF
##8A31A21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A5
Deuteranopia (green-blind)
#365D9F
Tritanopia (blue-blind)
#894666
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a31a2;
/* rgb */ color: rgb(138, 49, 162);
/* oklch */ color: oklch(49.1% 0.184 318.3);
Tailwind
colors: {
  custom: {
    50: '#b071be',
    500: '#8a31a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a31a2;
$custom-light: #b071be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31a2",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 287.257,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.49096,
    "c": 0.18447,
    "h": 318.3
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#8A31A2
secondary
#81BE71
accent
#DD4B6A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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