#8A51BE#8A51BE

#8A51BE is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.168 H 305.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A51BE
RGBrgb(138, 81, 190)
HSLhsl(271, 46%, 53%)
HSVhsv(271, 57%, 75%)
CMYKcmyk(27.4%, 57.4%, 0%, 25.5%)
CIE-LABlab(45.64, 44.59, -48.44)
CIE-LCHlch(45.64, 65.83, 312.63°)
OKLaboklab(55.03% 0.0982 -0.1366)
OKLCHoklch(55.03% 0.168 305.7)
XYZxyz(22.7159, 15.0060, 50.4050)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51BE #85BE51
analogous
#5351BE #8A51BE #BE51BC
triadic
#8A51BE #BE8A51 #51BE8A
tetradic
#8A51BE #BE5351 #85BE51 #51BCBE
square
#8A51BE #BE5351 #85BE51 #51BCBE
split-complementary
#8A51BE #BCBE51 #51BE53
monochromatic
#4C286C #6B3999 #8A51BE #A87ECF #C6AADF

Accessibility & contrast

On white

5.25
#8A51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51BE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51BE#FFFFFF#000000##FFFFFF
##8A51BE1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266AC2
Deuteranopia (green-blind)
#3D6CBB
Tritanopia (blue-blind)
#816680
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51be;
/* rgb */ color: rgb(138, 81, 190);
/* oklch */ color: oklch(55.0% 0.168 305.7);
Tailwind
colors: {
  custom: {
    50: '#af84d2',
    500: '#8a51be',
    950: '#000000',
  },
}
SCSS
$custom: #8a51be;
$custom-light: #af84d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51be",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 271.376,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55031,
    "c": 0.16822,
    "h": 305.7
  },
  "luminance": 0.15006
}

Semantic roles & 50–950 ramp

primary
#8A51BE
secondary
#B4CD9E
accent
#D55391
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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