#8A51AF#8A51AF

#8A51AF is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.1% C 0.151 H 310.3°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8A51AF
RGBrgb(138, 81, 175)
HSLhsl(276, 37%, 50%)
HSVhsv(276, 54%, 69%)
CMYKcmyk(21.1%, 53.7%, 0%, 31.4%)
CIE-LABlab(44.78, 41.06, -41.04)
CIE-LCHlch(44.78, 58.06, 315.01°)
OKLaboklab(54.12% 0.0975 -0.115)
OKLCHoklch(54.12% 0.151 310.3)
XYZxyz(21.1601, 14.3837, 42.2108)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A51AF #76AF51
analogous
#5B51AF #8A51AF #AF51A5
triadic
#8A51AF #AF8A51 #51AF8A
tetradic
#8A51AF #AF5B51 #76AF51 #51A5AF
square
#8A51AF #AF5B51 #76AF51 #51A5AF
split-complementary
#8A51AF #A5AF51 #51AF5B
monochromatic
#482A5C #693D85 #8A51AF #A67BC2 #C2A5D6

Accessibility & contrast

On white

5.42
#8A51AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A51AF
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A51AF#FFFFFF#000000##FFFFFF
##8A51AF1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#496BAD
Tritanopia (blue-blind)
#856178
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a51af;
/* rgb */ color: rgb(138, 81, 175);
/* oklch */ color: oklch(54.1% 0.151 310.3);
Tailwind
colors: {
  custom: {
    50: '#ae84c7',
    500: '#8a51af',
    950: '#000000',
  },
}
SCSS
$custom: #8a51af;
$custom-light: #ae84c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a51af",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 276.383,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54116,
    "c": 0.15074,
    "h": 310.3
  },
  "luminance": 0.14383
}

Semantic roles & 50–950 ramp

primary
#8A51AF
secondary
#A9C399
accent
#CD5B88
background
#FAF8FC
surface
#F5EFF8
border
#CFCAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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