#8A33A1#8A33A1

#8A33A1 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.2% C 0.181 H 318.5°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A33A1
RGBrgb(138, 51, 161)
HSLhsl(287, 52%, 42%)
HSVhsv(287, 68%, 63%)
CMYKcmyk(14.3%, 68.3%, 0%, 36.9%)
CIE-LABlab(38.45, 52.93, -42.80)
CIE-LCHlch(38.45, 68.07, 321.04°)
OKLaboklab(49.25% 0.1355 -0.1199)
OKLCHoklch(49.25% 0.181 318.5)
XYZxyz(18.0972, 10.3449, 34.7548)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A33A1 #4AA133
analogous
#5333A1 #8A33A1 #A13381
triadic
#8A33A1 #A18A33 #33A18A
tetradic
#8A33A1 #A15333 #4AA133 #3381A1
square
#8A33A1 #A15333 #4AA133 #3381A1
split-complementary
#8A33A1 #81A133 #33A153
monochromatic
#3A1644 #622473 #8A33A1 #AC4BC6 #C27AD5

Accessibility & contrast

On white

6.84
#8A33A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A33A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A33A1
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A33A1#FFFFFF#000000##FFFFFF
##8A33A11.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0255A4
Deuteranopia (green-blind)
#395D9E
Tritanopia (blue-blind)
#8A4766
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a33a1;
/* rgb */ color: rgb(138, 51, 161);
/* oklch */ color: oklch(49.2% 0.181 318.5);
Tailwind
colors: {
  custom: {
    50: '#af72bd',
    500: '#8a33a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a33a1;
$custom-light: #af72bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a33a1",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 161
  },
  "hsl": {
    "h": 287.455,
    "s": 51.887,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49247,
    "c": 0.18095,
    "h": 318.5
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

primary
#8A33A1
secondary
#82BD72
accent
#DB4C6A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A33A1

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

Preview Lab → · Contrast checker → · Palette generator →

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