#8A52D7#8A52D7

#8A52D7 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.196 H 299.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A52D7
RGBrgb(138, 82, 215)
HSLhsl(265, 62%, 58%)
HSVhsv(265, 62%, 84%)
CMYKcmyk(35.8%, 61.9%, 0%, 15.7%)
CIE-LABlab(47.42, 50.21, -59.98)
CIE-LCHlch(47.42, 78.22, 309.93°)
OKLaboklab(56.84% 0.0964 -0.1705)
OKLCHoklch(56.84% 0.196 299.5)
XYZxyz(25.7613, 16.3439, 66.0743)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52D7 #9FD752
analogous
#525CD7 #8A52D7 #CC52D7
triadic
#8A52D7 #D78A52 #52D78A
tetradic
#8A52D7 #D7525C #9FD752 #52D7CC
square
#8A52D7 #D7525C #9FD752 #52D7CC
split-complementary
#8A52D7 #D7CC52 #5CD752
monochromatic
#4F218E #6A2CC0 #8A52D7 #AC84E2 #CDB5EE

Accessibility & contrast

On white

4.92
#8A52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52D7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52D7#FFFFFF#000000##FFFFFF
##8A52D71.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DB
Deuteranopia (green-blind)
#1B6FD4
Tritanopia (blue-blind)
#796F8D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a52d7;
/* rgb */ color: rgb(138, 82, 215);
/* oklch */ color: oklch(56.8% 0.196 299.5);
Tailwind
colors: {
  custom: {
    50: '#b185e4',
    500: '#8a52d7',
    950: '#000000',
  },
}
SCSS
$custom: #8a52d7;
$custom-light: #b185e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52d7",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 265.263,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56835,
    "c": 0.19585,
    "h": 299.5
  },
  "luminance": 0.16344
}

Semantic roles & 50–950 ramp

primary
#8A52D7
secondary
#C7DDA8
accent
#E642A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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