#8A51BF#8A51BF

#8A51BF is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.169 H 305.4°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8A51BF
RGBrgb(138, 81, 191)
HSLhsl(271, 46%, 53%)
HSVhsv(271, 58%, 75%)
CMYKcmyk(27.7%, 57.6%, 0%, 25.1%)
CIE-LABlab(45.70, 44.83, -48.92)
CIE-LCHlch(45.70, 66.35, 312.50°)
OKLaboklab(55.09% 0.0982 -0.138)
OKLCHoklch(55.09% 0.169 305.4)
XYZxyz(22.8256, 15.0499, 50.9825)
Luminance0.1505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51BF #86BF51
analogous
#5351BF #8A51BF #BF51BD
triadic
#8A51BF #BF8A51 #51BF8A
tetradic
#8A51BF #BF5351 #86BF51 #51BDBF
square
#8A51BF #BF5351 #86BF51 #51BDBF
split-complementary
#8A51BF #BDBF51 #51BF53
monochromatic
#4C286D #6B399A #8A51BF #A87ECF #C6AAE0

Accessibility & contrast

On white

5.24
#8A51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8A51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51BF
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51BF#FFFFFF#000000##FFFFFF
##8A51BF1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256AC3
Deuteranopia (green-blind)
#3C6CBC
Tritanopia (blue-blind)
#816680
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51bf;
/* rgb */ color: rgb(138, 81, 191);
/* oklch */ color: oklch(55.1% 0.169 305.4);
Tailwind
colors: {
  custom: {
    50: '#af84d3',
    500: '#8a51bf',
    950: '#000000',
  },
}
SCSS
$custom: #8a51bf;
$custom-light: #af84d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51bf",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 271.091,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55094,
    "c": 0.16938,
    "h": 305.4
  },
  "luminance": 0.1505
}

Semantic roles & 50–950 ramp

primary
#8A51BF
secondary
#B5CE9E
accent
#D65292
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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