#8A33A2#8A33A2

#8A33A2 is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.3% C 0.182 H 318.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#8A33A2
RGBrgb(138, 51, 162)
HSLhsl(287, 52%, 42%)
HSVhsv(287, 69%, 64%)
CMYKcmyk(14.8%, 68.5%, 0%, 36.5%)
CIE-LABlab(38.52, 53.13, -43.30)
CIE-LCHlch(38.52, 68.54, 320.82°)
OKLaboklab(49.31% 0.1355 -0.1214)
OKLCHoklch(49.31% 0.182 318.1)
XYZxyz(18.1857, 10.3804, 35.2211)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A33A2 #4BA233
analogous
#5333A2 #8A33A2 #A23383
triadic
#8A33A2 #A28A33 #33A28A
tetradic
#8A33A2 #A25333 #4BA233 #3383A2
square
#8A33A2 #A25333 #4BA233 #3383A2
split-complementary
#8A33A2 #83A233 #33A253
monochromatic
#3B1645 #622473 #8A33A2 #AC4CC7 #C27AD5

Accessibility & contrast

On white

6.83
#8A33A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A33A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A33A2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A33A2#FFFFFF#000000##FFFFFF
##8A33A21.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A5
Deuteranopia (green-blind)
#385D9F
Tritanopia (blue-blind)
#894866
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a33a2;
/* rgb */ color: rgb(138, 51, 162);
/* oklch */ color: oklch(49.3% 0.182 318.1);
Tailwind
colors: {
  custom: {
    50: '#af72be',
    500: '#8a33a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a33a2;
$custom-light: #af72be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a33a2",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 287.027,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49312,
    "c": 0.18189,
    "h": 318.1
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

primary
#8A33A2
secondary
#83BE73
accent
#DC4C6B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A33A2

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

Preview Lab → · Contrast checker → · Palette generator →

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