#8A52E4#8A52E4

#8A52E4 is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.8% C 0.211 H 296.9°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A52E4
RGBrgb(138, 82, 228)
HSLhsl(263, 73%, 61%)
HSVhsv(263, 64%, 89%)
CMYKcmyk(39.5%, 64%, 0%, 10.6%)
CIE-LABlab(48.31, 53.50, -65.93)
CIE-LCHlch(48.31, 84.90, 309.06°)
OKLaboklab(57.76% 0.0954 -0.188)
OKLCHoklch(57.76% 0.211 296.9)
XYZxyz(27.4985, 17.0388, 75.2238)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52E4 #ACE452
analogous
#5263E4 #8A52E4 #D352E4
triadic
#8A52E4 #E48A52 #52E48A
tetradic
#8A52E4 #E45263 #ACE452 #52E4D3
square
#8A52E4 #E45263 #ACE452 #52E4D3
split-complementary
#8A52E4 #E4D352 #63E452
monochromatic
#4E19A2 #6722D7 #8A52E4 #AE87EC #D2BCF5

Accessibility & contrast

On white

4.76
#8A52E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A52E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52E4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52E4#FFFFFF#000000##FFFFFF
##8A52E41.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#747494
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a52e4;
/* rgb */ color: rgb(138, 82, 228);
/* oklch */ color: oklch(57.8% 0.211 296.9);
Tailwind
colors: {
  custom: {
    50: '#b286ed',
    500: '#8a52e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a52e4;
$custom-light: #b286ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52e4",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 263.014,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.57757,
    "c": 0.21079,
    "h": 296.9
  },
  "luminance": 0.17039
}

Semantic roles & 50–950 ramp

primary
#8A52E4
secondary
#CFE5AD
accent
#D5108A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8A52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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