#8A33A5#8A33A5

#8A33A5 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.5% C 0.185 H 317.1°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A33A5
RGBrgb(138, 51, 165)
HSLhsl(286, 53%, 42%)
HSVhsv(286, 69%, 65%)
CMYKcmyk(16.4%, 69.1%, 0%, 35.3%)
CIE-LABlab(38.70, 53.74, -44.80)
CIE-LCHlch(38.70, 69.96, 320.19°)
OKLaboklab(49.51% 0.1353 -0.1258)
OKLCHoklch(49.51% 0.185 317.1)
XYZxyz(18.4556, 10.4883, 36.6423)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A33A5 #4EA533
analogous
#5133A5 #8A33A5 #A53387
triadic
#8A33A5 #A58A33 #33A58A
tetradic
#8A33A5 #A55133 #4EA533 #3387A5
square
#8A33A5 #A55133 #4EA533 #3387A5
split-complementary
#8A33A5 #87A533 #33A551
monochromatic
#3C1648 #632576 #8A33A5 #AB4DC8 #C17CD6

Accessibility & contrast

On white

6.78
#8A33A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A33A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A33A5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A33A5#FFFFFF#000000##FFFFFF
##8A33A51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#355EA2
Tritanopia (blue-blind)
#894968
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a33a5;
/* rgb */ color: rgb(138, 51, 165);
/* oklch */ color: oklch(49.5% 0.185 317.1);
Tailwind
colors: {
  custom: {
    50: '#b072c0',
    500: '#8a33a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a33a5;
$custom-light: #b072c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a33a5",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 165
  },
  "hsl": {
    "h": 285.789,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49507,
    "c": 0.18473,
    "h": 317.1
  },
  "luminance": 0.10488
}

Semantic roles & 50–950 ramp

primary
#8A33A5
secondary
#86BF75
accent
#DC4C6E
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A33A5

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

Preview Lab → · Contrast checker → · Palette generator →

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