#8A51C0#8A51C0

#8A51C0 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.171 H 305.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8A51C0
RGBrgb(138, 81, 192)
HSLhsl(271, 47%, 54%)
HSVhsv(271, 58%, 75%)
CMYKcmyk(28.1%, 57.8%, 0%, 24.7%)
CIE-LABlab(45.76, 45.07, -49.41)
CIE-LCHlch(45.76, 66.87, 312.37°)
OKLaboklab(55.16% 0.0982 -0.1394)
OKLCHoklch(55.16% 0.171 305.2)
XYZxyz(22.9360, 15.0940, 51.5641)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51C0 #87C051
analogous
#5251C0 #8A51C0 #C051BE
triadic
#8A51C0 #C08A51 #51C08A
tetradic
#8A51C0 #C05251 #87C051 #51BEC0
square
#8A51C0 #C05251 #87C051 #51BEC0
split-complementary
#8A51C0 #BEC051 #51C052
monochromatic
#4C286F #6B389B #8A51C0 #A87ED0 #C6ABE1

Accessibility & contrast

On white

5.23
#8A51C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8A51C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A51C0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51C0#FFFFFF#000000##FFFFFF
##8A51C01.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#246BC4
Deuteranopia (green-blind)
#3B6DBD
Tritanopia (blue-blind)
#816781
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a51c0;
/* rgb */ color: rgb(138, 81, 192);
/* oklch */ color: oklch(55.2% 0.171 305.2);
Tailwind
colors: {
  custom: {
    50: '#af84d4',
    500: '#8a51c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a51c0;
$custom-light: #af84d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51c0",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 270.811,
    "s": 46.835,
    "l": 53.529
  },
  "oklch": {
    "l": 0.55158,
    "c": 0.17055,
    "h": 305.2
  },
  "luminance": 0.15094
}

Semantic roles & 50–950 ramp

primary
#8A51C0
secondary
#B6CE9F
accent
#D65192
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A51C0

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

Preview Lab → · Contrast checker → · Palette generator →

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