#8A31BD#8A31BD

#8A31BD is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.210 H 309.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8A31BD
RGBrgb(138, 49, 189)
HSLhsl(278, 59%, 47%)
HSVhsv(278, 74%, 74%)
CMYKcmyk(27%, 74.1%, 0%, 25.9%)
CIE-LABlab(40.04, 59.58, -56.87)
CIE-LCHlch(40.04, 82.37, 316.33°)
OKLaboklab(50.97% 0.1345 -0.1612)
OKLCHoklch(50.97% 0.21 309.9)
XYZxyz(20.7630, 11.2745, 49.2167)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31BD #64BD31
analogous
#4431BD #8A31BD #BD31AA
triadic
#8A31BD #BD8A31 #31BD8A
tetradic
#8A31BD #BD4431 #64BD31 #31AABD
square
#8A31BD #BD4431 #64BD31 #31AABD
split-complementary
#8A31BD #AABD31 #31BD44
monochromatic
#43185C #67248C #8A31BD #A658D4 #C088E0

Accessibility & contrast

On white

6.45
#8A31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A31BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31BD
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31BD#FFFFFF#000000##FFFFFF
##8A31BD1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#0C60BA
Tritanopia (blue-blind)
#835275
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a31bd;
/* rgb */ color: rgb(138, 49, 189);
/* oklch */ color: oklch(51.0% 0.210 309.9);
Tailwind
colors: {
  custom: {
    50: '#b172d2',
    500: '#8a31bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a31bd;
$custom-light: #b172d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31bd",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 278.143,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50973,
    "c": 0.20995,
    "h": 309.9
  },
  "luminance": 0.11274
}

Semantic roles & 50–950 ramp

primary
#8A31BD
secondary
#9BCA80
accent
#E2467F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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