#8A51BC#8A51BC

#8A51BC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.166 H 306.3°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A51BC
RGBrgb(138, 81, 188)
HSLhsl(272, 44%, 53%)
HSVhsv(272, 57%, 74%)
CMYKcmyk(26.6%, 56.9%, 0%, 26.3%)
CIE-LABlab(45.52, 44.11, -47.46)
CIE-LCHlch(45.52, 64.80, 312.90°)
OKLaboklab(54.91% 0.0982 -0.1337)
OKLCHoklch(54.91% 0.166 306.3)
XYZxyz(22.4989, 14.9192, 49.2616)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51BC #83BC51
analogous
#5551BC #8A51BC #BC51B8
triadic
#8A51BC #BC8A51 #51BC8A
tetradic
#8A51BC #BC5551 #83BC51 #51B8BC
square
#8A51BC #BC5551 #83BC51 #51B8BC
split-complementary
#8A51BC #B8BC51 #51BC55
monochromatic
#4B296A #6B3A96 #8A51BC #A87DCD #C5A9DE

Accessibility & contrast

On white

5.27
#8A51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A51BC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51BC#FFFFFF#000000##FFFFFF
##8A51BC1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296AC0
Deuteranopia (green-blind)
#3F6CB9
Tritanopia (blue-blind)
#82657F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51bc;
/* rgb */ color: rgb(138, 81, 188);
/* oklch */ color: oklch(54.9% 0.166 306.3);
Tailwind
colors: {
  custom: {
    50: '#af84d1',
    500: '#8a51bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a51bc;
$custom-light: #af84d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51bc",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 271.963,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54905,
    "c": 0.16589,
    "h": 306.3
  },
  "luminance": 0.14919
}

Semantic roles & 50–950 ramp

primary
#8A51BC
secondary
#B3CC9D
accent
#D45490
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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