#8A33B2#8A33B2

#8A33B2 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.4% C 0.197 H 312.9°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A33B2
RGBrgb(138, 51, 178)
HSLhsl(281, 55%, 45%)
HSVhsv(281, 71%, 70%)
CMYKcmyk(22.5%, 71.3%, 0%, 30.2%)
CIE-LABlab(39.56, 56.43, -51.17)
CIE-LCHlch(39.56, 76.17, 317.80°)
OKLaboklab(50.39% 0.1342 -0.1444)
OKLCHoklch(50.39% 0.197 312.9)
XYZxyz(19.6995, 10.9859, 43.1936)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A33B2 #5BB233
analogous
#4A33B2 #8A33B2 #B2339B
triadic
#8A33B2 #B28A33 #33B28A
tetradic
#8A33B2 #B24A33 #5BB233 #339BB2
square
#8A33B2 #B24A33 #5BB233 #339BB2
split-complementary
#8A33B2 #9BB233 #33B24A
monochromatic
#401853 #652582 #8A33B2 #A854CE #C084DC

Accessibility & contrast

On white

6.57
#8A33B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A33B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A33B2
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A33B2#FFFFFF#000000##FFFFFF
##8A33B21.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#275FAF
Tritanopia (blue-blind)
#864E6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a33b2;
/* rgb */ color: rgb(138, 51, 178);
/* oklch */ color: oklch(50.4% 0.197 312.9);
Tailwind
colors: {
  custom: {
    50: '#b072ca',
    500: '#8a33b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a33b2;
$custom-light: #b072ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a33b2",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 281.102,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50387,
    "c": 0.19713,
    "h": 312.9
  },
  "luminance": 0.10985
}

Semantic roles & 50–950 ramp

primary
#8A33B2
secondary
#93C57C
accent
#DF4978
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A33B2

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

Preview Lab → · Contrast checker → · Palette generator →

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