#8A51B0#8A51B0

#8A51B0 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.2% C 0.152 H 310.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8A51B0
RGBrgb(138, 81, 176)
HSLhsl(276, 38%, 50%)
HSVhsv(276, 54%, 69%)
CMYKcmyk(21.6%, 54%, 0%, 31%)
CIE-LABlab(44.83, 41.29, -41.54)
CIE-LCHlch(44.83, 58.57, 314.83°)
OKLaboklab(54.18% 0.0976 -0.1164)
OKLCHoklch(54.18% 0.152 310)
XYZxyz(21.2587, 14.4231, 42.7299)
Luminance0.1442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51B0 #77B051
analogous
#5A51B0 #8A51B0 #B051A6
triadic
#8A51B0 #B08A51 #51B08A
tetradic
#8A51B0 #B05A51 #77B051 #51A6B0
square
#8A51B0 #B05A51 #77B051 #51A6B0
split-complementary
#8A51B0 #A6B051 #51B05A
monochromatic
#482A5D #693D87 #8A51B0 #A67BC3 #C3A5D6

Accessibility & contrast

On white

5.41
#8A51B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8A51B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51B0
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51B0#FFFFFF#000000##FFFFFF
##8A51B01.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B3
Deuteranopia (green-blind)
#486BAE
Tritanopia (blue-blind)
#856179
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a51b0;
/* rgb */ color: rgb(138, 81, 176);
/* oklch */ color: oklch(54.2% 0.152 310.0);
Tailwind
colors: {
  custom: {
    50: '#ae84c8',
    500: '#8a51b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a51b0;
$custom-light: #ae84c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51b0",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 176
  },
  "hsl": {
    "h": 276,
    "s": 37.549,
    "l": 50.392
  },
  "oklch": {
    "l": 0.54175,
    "c": 0.15189,
    "h": 310
  },
  "luminance": 0.14423
}

Semantic roles & 50–950 ramp

primary
#8A51B0
secondary
#AAC499
accent
#CE5A88
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A51B0

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

Preview Lab → · Contrast checker → · Palette generator →

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