#8A52CF#8A52CF

#8A52CF is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.3% C 0.187 H 301.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8A52CF
RGBrgb(138, 82, 207)
HSLhsl(267, 57%, 57%)
HSVhsv(267, 60%, 81%)
CMYKcmyk(33.3%, 60.4%, 0%, 18.8%)
CIE-LABlab(46.90, 48.21, -56.24)
CIE-LCHlch(46.90, 74.07, 310.60°)
OKLaboklab(56.29% 0.0968 -0.1595)
OKLCHoklch(56.29% 0.187 301.3)
XYZxyz(24.7583, 15.9427, 60.7923)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52CF #97CF52
analogous
#5259CF #8A52CF #C952CF
triadic
#8A52CF #CF8A52 #52CF8A
tetradic
#8A52CF #CF5259 #97CF52 #52CFC9
square
#8A52CF #CF5259 #97CF52 #52CFC9
split-complementary
#8A52CF #CFC952 #59CF52
monochromatic
#4E2482 #6B31B2 #8A52CF #AA82DC #CBB2EA

Accessibility & contrast

On white

5.01
#8A52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8A52CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52CF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52CF#FFFFFF#000000##FFFFFF
##8A52CF1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#2B6FCC
Tritanopia (blue-blind)
#7C6C89
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a52cf;
/* rgb */ color: rgb(138, 82, 207);
/* oklch */ color: oklch(56.3% 0.187 301.3);
Tailwind
colors: {
  custom: {
    50: '#b085de',
    500: '#8a52cf',
    950: '#000000',
  },
}
SCSS
$custom: #8a52cf;
$custom-light: #b085de;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52cf",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 266.88,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56288,
    "c": 0.18656,
    "h": 301.3
  },
  "luminance": 0.15943
}

Semantic roles & 50–950 ramp

primary
#8A52CF
secondary
#C1D8A5
accent
#E0489C
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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