#8A51BB#8A51BB

#8A51BB is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.8% C 0.165 H 306.6°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A51BB
RGBrgb(138, 81, 187)
HSLhsl(272, 44%, 53%)
HSVhsv(272, 57%, 73%)
CMYKcmyk(26.2%, 56.7%, 0%, 26.7%)
CIE-LABlab(45.46, 43.87, -46.97)
CIE-LCHlch(45.46, 64.28, 313.05°)
OKLaboklab(54.84% 0.0981 -0.1323)
OKLCHoklch(54.84% 0.165 306.6)
XYZxyz(22.3914, 14.8762, 48.6959)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51BB #82BB51
analogous
#5551BB #8A51BB #BB51B7
triadic
#8A51BB #BB8A51 #51BB8A
tetradic
#8A51BB #BB5551 #82BB51 #51B7BB
square
#8A51BB #BB5551 #82BB51 #51B7BB
split-complementary
#8A51BB #B7BB51 #51BB55
monochromatic
#4B2969 #6B3A95 #8A51BB #A87DCC #C5A9DD

Accessibility & contrast

On white

5.28
#8A51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51BB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51BB#FFFFFF#000000##FFFFFF
##8A51BB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6ABE
Deuteranopia (green-blind)
#406CB8
Tritanopia (blue-blind)
#82657E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51bb;
/* rgb */ color: rgb(138, 81, 187);
/* oklch */ color: oklch(54.8% 0.165 306.6);
Tailwind
colors: {
  custom: {
    50: '#af84d0',
    500: '#8a51bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a51bb;
$custom-light: #af84d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51bb",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 272.264,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54843,
    "c": 0.16472,
    "h": 306.6
  },
  "luminance": 0.14876
}

Semantic roles & 50–950 ramp

primary
#8A51BB
secondary
#B2CB9D
accent
#D4548F
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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