#8A52D3#8A52D3

#8A52D3 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.6% C 0.191 H 300.4°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A52D3
RGBrgb(138, 82, 211)
HSLhsl(266, 59%, 57%)
HSVhsv(266, 61%, 83%)
CMYKcmyk(34.6%, 61.1%, 0%, 17.3%)
CIE-LABlab(47.16, 49.20, -58.12)
CIE-LCHlch(47.16, 76.15, 310.25°)
OKLaboklab(56.56% 0.0967 -0.165)
OKLCHoklch(56.56% 0.191 300.4)
XYZxyz(25.2536, 16.1408, 63.4004)
Luminance0.1614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D3 #9BD352
analogous
#525AD3 #8A52D3 #CB52D3
triadic
#8A52D3 #D38A52 #52D38A
tetradic
#8A52D3 #D3525A #9BD352 #52D3CB
square
#8A52D3 #D3525A #9BD352 #52D3CB
split-complementary
#8A52D3 #D3CB52 #5AD352
monochromatic
#4F2388 #6B2FB9 #8A52D3 #AB83DF #CCB4EC

Accessibility & contrast

On white

4.97
#8A52D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A52D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D3
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D3#FFFFFF#000000##FFFFFF
##8A52D31.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD7
Deuteranopia (green-blind)
#246FD0
Tritanopia (blue-blind)
#7A6E8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a52d3;
/* rgb */ color: rgb(138, 82, 211);
/* oklch */ color: oklch(56.6% 0.191 300.4);
Tailwind
colors: {
  custom: {
    50: '#b185e1',
    500: '#8a52d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d3;
$custom-light: #b185e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d3",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 266.047,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56559,
    "c": 0.19121,
    "h": 300.4
  },
  "luminance": 0.16141
}

Semantic roles & 50–950 ramp

primary
#8A52D3
secondary
#C4DAA6
accent
#E3459E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52D3

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

Preview Lab → · Contrast checker → · Palette generator →

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