#8A52B2#8A52B2

#8A52B2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.4% C 0.153 H 309.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A52B2
RGBrgb(138, 82, 178)
HSLhsl(275, 38%, 51%)
HSVhsv(275, 54%, 70%)
CMYKcmyk(22.5%, 53.9%, 0%, 30.2%)
CIE-LABlab(45.15, 41.21, -42.21)
CIE-LCHlch(45.15, 58.99, 314.32°)
OKLaboklab(54.45% 0.0964 -0.1184)
OKLCHoklch(54.45% 0.153 309.1)
XYZxyz(21.5329, 14.6525, 43.8047)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52B2 #7AB252
analogous
#5A52B2 #8A52B2 #B252AA
triadic
#8A52B2 #B28A52 #52B28A
tetradic
#8A52B2 #B25A52 #7AB252 #52AAB2
square
#8A52B2 #B25A52 #7AB252 #52AAB2
split-complementary
#8A52B2 #AAB252 #52B25A
monochromatic
#492A5F #6A3D8A #8A52B2 #A77CC5 #C3A7D8

Accessibility & contrast

On white

5.34
#8A52B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A52B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52B2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52B2#FFFFFF#000000##FFFFFF
##8A52B21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3668B5
Deuteranopia (green-blind)
#486CB0
Tritanopia (blue-blind)
#85637A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a52b2;
/* rgb */ color: rgb(138, 82, 178);
/* oklch */ color: oklch(54.4% 0.153 309.1);
Tailwind
colors: {
  custom: {
    50: '#af85c9',
    500: '#8a52b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a52b2;
$custom-light: #af85c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52b2",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 275,
    "s": 38.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54448,
    "c": 0.15262,
    "h": 309.1
  },
  "luminance": 0.14652
}

Semantic roles & 50–950 ramp

primary
#8A52B2
secondary
#ACC59B
accent
#CE598A
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A52B2

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

Preview Lab → · Contrast checker → · Palette generator →

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