#8A52E5#8A52E5

#8A52E5 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.212 H 296.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A52E5
RGBrgb(138, 82, 229)
HSLhsl(263, 74%, 61%)
HSVhsv(263, 64%, 90%)
CMYKcmyk(39.7%, 64.2%, 0%, 10.2%)
CIE-LABlab(48.38, 53.76, -66.38)
CIE-LCHlch(48.38, 85.42, 309.00°)
OKLaboklab(57.83% 0.0953 -0.1893)
OKLCHoklch(57.83% 0.212 296.7)
XYZxyz(27.6377, 17.0945, 75.9570)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52E5 #ADE552
analogous
#5263E5 #8A52E5 #D352E5
triadic
#8A52E5 #E58A52 #52E58A
tetradic
#8A52E5 #E55263 #ADE552 #52E5D3
square
#8A52E5 #E55263 #ADE552 #52E5D3
split-complementary
#8A52E5 #E5D352 #63E552
monochromatic
#4E19A4 #6721D9 #8A52E5 #AE87ED #D2BCF5

Accessibility & contrast

On white

4.75
#8A52E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A52E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52E5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52E5#FFFFFF#000000##FFFFFF
##8A52E51.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EA
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#737494
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a52e5;
/* rgb */ color: rgb(138, 82, 229);
/* oklch */ color: oklch(57.8% 0.212 296.7);
Tailwind
colors: {
  custom: {
    50: '#b286ee',
    500: '#8a52e5',
    950: '#000000',
  },
}
SCSS
$custom: #8a52e5;
$custom-light: #b286ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52e5",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 262.857,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.5783,
    "c": 0.21193,
    "h": 296.7
  },
  "luminance": 0.17095
}

Semantic roles & 50–950 ramp

primary
#8A52E5
secondary
#D0E5AE
accent
#D6108A
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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