#8A52E2#8A52E2

#8A52E2 is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.6% C 0.209 H 297.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A52E2
RGBrgb(138, 82, 226)
HSLhsl(263, 71%, 60%)
HSVhsv(263, 64%, 89%)
CMYKcmyk(38.9%, 63.7%, 0%, 11.4%)
CIE-LABlab(48.17, 52.99, -65.02)
CIE-LCHlch(48.17, 83.88, 309.18°)
OKLaboklab(57.61% 0.0956 -0.1853)
OKLCHoklch(57.61% 0.209 297.3)
XYZxyz(27.2225, 16.9284, 73.7700)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A52E2 #AAE252
analogous
#5262E2 #8A52E2 #D252E2
triadic
#8A52E2 #E28A52 #52E28A
tetradic
#8A52E2 #E25262 #AAE252 #52E2D2
square
#8A52E2 #E25262 #AAE252 #52E2D2
split-complementary
#8A52E2 #E2D252 #62E252
monochromatic
#4E1B9F #6823D3 #8A52E2 #AD86EB #D1BBF4

Accessibility & contrast

On white

4.79
#8A52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8A52E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A52E2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A52E2#FFFFFF#000000##FFFFFF
##8A52E21.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0071DF
Tritanopia (blue-blind)
#757393
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a52e2;
/* rgb */ color: rgb(138, 82, 226);
/* oklch */ color: oklch(57.6% 0.209 297.3);
Tailwind
colors: {
  custom: {
    50: '#b286ec',
    500: '#8a52e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a52e2;
$custom-light: #b286ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a52e2",
  "rgb": {
    "r": 138,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 263.333,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.57613,
    "c": 0.20851,
    "h": 297.3
  },
  "luminance": 0.16929
}

Semantic roles & 50–950 ramp

primary
#8A52E2
secondary
#CEE3AC
accent
#D31288
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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