#8A52BE#8A52BE

#8A52BE is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.167 H 305.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8A52BE
RGBrgb(138, 82, 190)
HSLhsl(271, 45%, 53%)
HSVhsv(271, 57%, 75%)
CMYKcmyk(27.4%, 56.8%, 0%, 25.5%)
CIE-LABlab(45.85, 44.05, -48.11)
CIE-LCHlch(45.85, 65.23, 312.48°)
OKLaboklab(55.18% 0.0969 -0.1356)
OKLCHoklch(55.18% 0.167 305.5)
XYZxyz(22.7908, 15.1557, 50.4299)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52BE #86BE52
analogous
#5452BE #8A52BE #BE52BC
triadic
#8A52BE #BE8A52 #52BE8A
tetradic
#8A52BE #BE5452 #86BE52 #52BCBE
square
#8A52BE #BE5452 #86BE52 #52BCBE
split-complementary
#8A52BE #BCBE52 #52BE54
monochromatic
#4C296D #6B3A99 #8A52BE #A87ECF #C6ABDF

Accessibility & contrast

On white

5.21
#8A52BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8A52BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52BE
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52BE#FFFFFF#000000##FFFFFF
##8A52BE1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#296BC2
Deuteranopia (green-blind)
#3E6DBB
Tritanopia (blue-blind)
#816780
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a52be;
/* rgb */ color: rgb(138, 82, 190);
/* oklch */ color: oklch(55.2% 0.167 305.5);
Tailwind
colors: {
  custom: {
    50: '#af85d2',
    500: '#8a52be',
    950: '#000000',
  },
}
SCSS
$custom: #8a52be;
$custom-light: #af85d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52be",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 190
  },
  "hsl": {
    "h": 271.111,
    "s": 45.378,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55181,
    "c": 0.16669,
    "h": 305.5
  },
  "luminance": 0.15156
}

Semantic roles & 50–950 ramp

primary
#8A52BE
secondary
#B5CD9F
accent
#D55391
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8A52BE

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

Preview Lab → · Contrast checker → · Palette generator →

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