#8A52C7#8A52C7

#8A52C7 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.8% C 0.177 H 303.2°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8A52C7
RGBrgb(138, 82, 199)
HSLhsl(269, 51%, 55%)
HSVhsv(269, 59%, 78%)
CMYKcmyk(30.7%, 58.8%, 0%, 22%)
CIE-LABlab(46.39, 46.23, -52.45)
CIE-LCHlch(46.39, 69.92, 311.40°)
OKLaboklab(55.76% 0.097 -0.1483)
OKLCHoklch(55.76% 0.177 303.2)
XYZxyz(23.8050, 15.5614, 55.7713)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52C7 #8FC752
analogous
#5254C7 #8A52C7 #C552C7
triadic
#8A52C7 #C78A52 #52C78A
tetradic
#8A52C7 #C75254 #8FC752 #52C7C5
square
#8A52C7 #C75254 #8FC752 #52C7C5
split-complementary
#8A52C7 #C7C552 #54C752
monochromatic
#4E2778 #6C36A6 #8A52C7 #A980D6 #C9AEE5

Accessibility & contrast

On white

5.11
#8A52C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8A52C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52C7
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52C7#FFFFFF#000000##FFFFFF
##8A52C71.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6DCB
Deuteranopia (green-blind)
#356EC4
Tritanopia (blue-blind)
#7F6A85
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a52c7;
/* rgb */ color: rgb(138, 82, 199);
/* oklch */ color: oklch(55.8% 0.177 303.2);
Tailwind
colors: {
  custom: {
    50: '#b085d9',
    500: '#8a52c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a52c7;
$custom-light: #b085d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52c7",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 199
  },
  "hsl": {
    "h": 268.718,
    "s": 51.092,
    "l": 55.098
  },
  "oklch": {
    "l": 0.55757,
    "c": 0.17723,
    "h": 303.2
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#8A52C7
secondary
#BBD3A2
accent
#DB4D97
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52C7

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

Preview Lab → · Contrast checker → · Palette generator →

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