#8A51BA#8A51BA

#8A51BA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.164 H 306.9°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A51BA
RGBrgb(138, 81, 186)
HSLhsl(273, 43%, 52%)
HSVhsv(273, 56%, 73%)
CMYKcmyk(25.8%, 56.5%, 0%, 27.1%)
CIE-LABlab(45.41, 43.64, -46.49)
CIE-LCHlch(45.41, 63.76, 313.19°)
OKLaboklab(54.78% 0.0981 -0.1309)
OKLCHoklch(54.78% 0.164 306.9)
XYZxyz(22.2848, 14.8335, 48.1340)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51BA #81BA51
analogous
#5551BA #8A51BA #BA51B6
triadic
#8A51BA #BA8A51 #51BA8A
tetradic
#8A51BA #BA5551 #81BA51 #51B6BA
square
#8A51BA #BA5551 #81BA51 #51B6BA
split-complementary
#8A51BA #B6BA51 #51BA55
monochromatic
#4B2968 #6B3A93 #8A51BA #A77DCB #C5A9DD

Accessibility & contrast

On white

5.29
#8A51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51BA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51BA#FFFFFF#000000##FFFFFF
##8A51BA1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C69BD
Deuteranopia (green-blind)
#416CB7
Tritanopia (blue-blind)
#82657E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a51ba;
/* rgb */ color: rgb(138, 81, 186);
/* oklch */ color: oklch(54.8% 0.164 306.9);
Tailwind
colors: {
  custom: {
    50: '#af84cf',
    500: '#8a51ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a51ba;
$custom-light: #af84cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51ba",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 272.571,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.54781,
    "c": 0.16356,
    "h": 306.9
  },
  "luminance": 0.14833
}

Semantic roles & 50–950 ramp

primary
#8A51BA
secondary
#B1CA9D
accent
#D3558E
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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