#8A52B1#8A52B1

#8A52B1 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.4% C 0.151 H 309.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A52B1
RGBrgb(138, 82, 177)
HSLhsl(275, 38%, 51%)
HSVhsv(275, 54%, 69%)
CMYKcmyk(22%, 53.7%, 0%, 30.6%)
CIE-LABlab(45.10, 40.98, -41.71)
CIE-LCHlch(45.10, 58.47, 314.49°)
OKLaboklab(54.39% 0.0963 -0.1169)
OKLCHoklch(54.39% 0.151 309.5)
XYZxyz(21.4328, 14.6125, 43.2779)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52B1 #79B152
analogous
#5A52B1 #8A52B1 #B152A9
triadic
#8A52B1 #B18A52 #52B18A
tetradic
#8A52B1 #B15A52 #79B152 #52A9B1
square
#8A52B1 #B15A52 #79B152 #52A9B1
split-complementary
#8A52B1 #A9B152 #52B15A
monochromatic
#492A5E #6A3D88 #8A52B1 #A77CC4 #C3A6D7

Accessibility & contrast

On white

5.35
#8A52B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8A52B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52B1
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52B1#FFFFFF#000000##FFFFFF
##8A52B11.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B4
Deuteranopia (green-blind)
#496CAF
Tritanopia (blue-blind)
#85637A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a52b1;
/* rgb */ color: rgb(138, 82, 177);
/* oklch */ color: oklch(54.4% 0.151 309.5);
Tailwind
colors: {
  custom: {
    50: '#ae85c9',
    500: '#8a52b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a52b1;
$custom-light: #ae85c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52b1",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 275.368,
    "s": 37.849,
    "l": 50.784
  },
  "oklch": {
    "l": 0.54389,
    "c": 0.15144,
    "h": 309.5
  },
  "luminance": 0.14612
}

Semantic roles & 50–950 ramp

primary
#8A52B1
secondary
#ACC49A
accent
#CE5A8A
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A52B1

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

Preview Lab → · Contrast checker → · Palette generator →

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