#8B52E8#8B52E8

#8B52E8 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.1% C 0.215 H 296.6°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8B52E8
RGBrgb(139, 82, 232)
HSLhsl(263, 77%, 62%)
HSVhsv(263, 65%, 91%)
CMYKcmyk(40.1%, 64.7%, 0%, 9%)
CIE-LABlab(48.70, 54.72, -67.55)
CIE-LCHlch(48.70, 86.94, 309.01°)
OKLaboklab(58.15% 0.0963 -0.1927)
OKLCHoklch(58.15% 0.215 296.6)
XYZxyz(28.2265, 17.3492, 78.1899)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B52E8 #AFE852
analogous
#5264E8 #8B52E8 #D652E8
triadic
#8B52E8 #E88B52 #52E88B
tetradic
#8B52E8 #E85264 #AFE852 #52E8D6
square
#8B52E8 #E85264 #AFE852 #52E8D6
split-complementary
#8B52E8 #E8D652 #64E852
monochromatic
#4E16A9 #671EDF #8B52E8 #AF88EF #D3BEF6

Accessibility & contrast

On white

4.70
#8B52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8B52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B52E8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B52E8#FFFFFF#000000##FFFFFF
##8B52E81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074ED
Deuteranopia (green-blind)
#0072E5
Tritanopia (blue-blind)
#747596
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8b52e8;
/* rgb */ color: rgb(139, 82, 232);
/* oklch */ color: oklch(58.1% 0.215 296.6);
Tailwind
colors: {
  custom: {
    50: '#b386f0',
    500: '#8b52e8',
    950: '#000000',
  },
}
SCSS
$custom: #8b52e8;
$custom-light: #b386f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b52e8",
  "rgb": {
    "r": 139,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 262.8,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.21545,
    "h": 296.6
  },
  "luminance": 0.1735
}

Semantic roles & 50–950 ramp

primary
#8B52E8
secondary
#D2E7AF
accent
#D90D8B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B17
muted
#817C85

Preview Lab

Preview with #8B52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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