#8A51C1#8A51C1

#8A51C1 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.172 H 304.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A51C1
RGBrgb(138, 81, 193)
HSLhsl(271, 47%, 54%)
HSVhsv(271, 58%, 76%)
CMYKcmyk(28.5%, 58%, 0%, 24.3%)
CIE-LABlab(45.82, 45.31, -49.89)
CIE-LCHlch(45.82, 67.39, 312.25°)
OKLaboklab(55.22% 0.0982 -0.1408)
OKLCHoklch(55.22% 0.172 304.9)
XYZxyz(23.0472, 15.1385, 52.1496)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51C1 #88C151
analogous
#5251C1 #8A51C1 #C151C0
triadic
#8A51C1 #C18A51 #51C18A
tetradic
#8A51C1 #C15251 #88C151 #51C0C1
square
#8A51C1 #C15251 #88C151 #51C0C1
split-complementary
#8A51C1 #C0C151 #51C152
monochromatic
#4C2870 #6B389D #8A51C1 #A87ED1 #C7ABE1

Accessibility & contrast

On white

5.21
#8A51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A51C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51C1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51C1#FFFFFF#000000##FFFFFF
##8A51C11.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226BC5
Deuteranopia (green-blind)
#3A6DBE
Tritanopia (blue-blind)
#806781
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51c1;
/* rgb */ color: rgb(138, 81, 193);
/* oklch */ color: oklch(55.2% 0.172 304.9);
Tailwind
colors: {
  custom: {
    50: '#af84d4',
    500: '#8a51c1',
    950: '#000000',
  },
}
SCSS
$custom: #8a51c1;
$custom-light: #af84d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51c1",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 193
  },
  "hsl": {
    "h": 270.536,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55222,
    "c": 0.17172,
    "h": 304.9
  },
  "luminance": 0.15138
}

Semantic roles & 50–950 ramp

primary
#8A51C1
secondary
#B6CF9F
accent
#D75193
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A51C1

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

Preview Lab → · Contrast checker → · Palette generator →

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