#8A51BD#8A51BD

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

Color values

HEX#8A51BD
RGBrgb(138, 81, 189)
HSLhsl(272, 45%, 53%)
HSVhsv(272, 57%, 74%)
CMYKcmyk(27%, 57.1%, 0%, 25.9%)
CIE-LABlab(45.58, 44.35, -47.95)
CIE-LCHlch(45.58, 65.32, 312.77°)
OKLaboklab(54.97% 0.0982 -0.1351)
OKLCHoklch(54.97% 0.167 306)
XYZxyz(22.6070, 14.9624, 49.8313)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51BD #84BD51
analogous
#5451BD #8A51BD #BD51BA
triadic
#8A51BD #BD8A51 #51BD8A
tetradic
#8A51BD #BD5451 #84BD51 #51BABD
square
#8A51BD #BD5451 #84BD51 #51BABD
split-complementary
#8A51BD #BABD51 #51BD54
monochromatic
#4C296B #6B3997 #8A51BD #A87DCE #C6AADF

Accessibility & contrast

On white

5.26
#8A51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51BD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51BD#FFFFFF#000000##FFFFFF
##8A51BD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286AC1
Deuteranopia (green-blind)
#3E6CBA
Tritanopia (blue-blind)
#82667F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51bd;
/* rgb */ color: rgb(138, 81, 189);
/* oklch */ color: oklch(55.0% 0.167 306.0);
Tailwind
colors: {
  custom: {
    50: '#af84d1',
    500: '#8a51bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a51bd;
$custom-light: #af84d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51bd",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 271.667,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54968,
    "c": 0.16705,
    "h": 306
  },
  "luminance": 0.14962
}

Semantic roles & 50–950 ramp

primary
#8A51BD
secondary
#B4CC9E
accent
#D55390
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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