#8A31AF#8A31AF

#8A31AF is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.197 H 314.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8A31AF
RGBrgb(138, 49, 175)
HSLhsl(282, 56%, 44%)
HSVhsv(282, 72%, 69%)
CMYKcmyk(21.1%, 72%, 0%, 31.4%)
CIE-LABlab(39.06, 56.62, -50.18)
CIE-LCHlch(39.06, 75.66, 318.45°)
OKLaboklab(49.97% 0.1366 -0.1415)
OKLCHoklch(49.97% 0.197 314)
XYZxyz(19.3161, 10.6957, 41.5961)
Luminance0.1070 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31AF #56AF31
analogous
#4B31AF #8A31AF #AF3195
triadic
#8A31AF #AF8A31 #31AF8A
tetradic
#8A31AF #AF4B31 #56AF31 #3195AF
square
#8A31AF #AF4B31 #56AF31 #3195AF
split-complementary
#8A31AF #95AF31 #31AF4B
monochromatic
#3F164F #64247F #8A31AF #A94FCE #C07FDB

Accessibility & contrast

On white

6.69
#8A31AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A31AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31AF
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31AF#FFFFFF#000000##FFFFFF
##8A31AF1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#295EAC
Tritanopia (blue-blind)
#864C6D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a31af;
/* rgb */ color: rgb(138, 49, 175);
/* oklch */ color: oklch(50.0% 0.197 314.0);
Tailwind
colors: {
  custom: {
    50: '#b071c8',
    500: '#8a31af',
    950: '#000000',
  },
}
SCSS
$custom: #8a31af;
$custom-light: #b071c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31af",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 282.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49972,
    "c": 0.19667,
    "h": 314
  },
  "luminance": 0.10695
}

Semantic roles & 50–950 ramp

primary
#8A31AF
secondary
#8EC478
accent
#E04875
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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