#8A52BD#8A52BD

#8A52BD is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.166 H 305.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8A52BD
RGBrgb(138, 82, 189)
HSLhsl(271, 45%, 53%)
HSVhsv(271, 57%, 74%)
CMYKcmyk(27%, 56.6%, 0%, 25.9%)
CIE-LABlab(45.79, 43.81, -47.62)
CIE-LCHlch(45.79, 64.71, 312.61°)
OKLaboklab(55.12% 0.0969 -0.1342)
OKLCHoklch(55.12% 0.166 305.8)
XYZxyz(22.6819, 15.1122, 49.8563)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52BD #85BD52
analogous
#5452BD #8A52BD #BD52BA
triadic
#8A52BD #BD8A52 #52BD8A
tetradic
#8A52BD #BD5452 #85BD52 #52BABD
square
#8A52BD #BD5452 #85BD52 #52BABD
split-complementary
#8A52BD #BABD52 #52BD54
monochromatic
#4C296C #6B3A98 #8A52BD #A87ECE #C6ABDF

Accessibility & contrast

On white

5.22
#8A52BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A52BD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52BD#FFFFFF#000000##FFFFFF
##8A52BD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC1
Deuteranopia (green-blind)
#3F6DBA
Tritanopia (blue-blind)
#826680
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a52bd;
/* rgb */ color: rgb(138, 82, 189);
/* oklch */ color: oklch(55.1% 0.166 305.8);
Tailwind
colors: {
  custom: {
    50: '#af85d1',
    500: '#8a52bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a52bd;
$custom-light: #af85d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52bd",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 189
  },
  "hsl": {
    "h": 271.402,
    "s": 44.77,
    "l": 53.137
  },
  "oklch": {
    "l": 0.55118,
    "c": 0.16552,
    "h": 305.8
  },
  "luminance": 0.15112
}

Semantic roles & 50–950 ramp

primary
#8A52BD
secondary
#B4CC9E
accent
#D45391
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8A52BD

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

Preview Lab → · Contrast checker → · Palette generator →

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