#8A33B1#8A33B1

#8A33B1 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.196 H 313.2°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A33B1
RGBrgb(138, 51, 177)
HSLhsl(281, 55%, 45%)
HSVhsv(281, 71%, 69%)
CMYKcmyk(22%, 71.2%, 0%, 30.6%)
CIE-LABlab(39.49, 56.22, -50.68)
CIE-LCHlch(39.49, 75.69, 317.96°)
OKLaboklab(50.32% 0.1343 -0.143)
OKLCHoklch(50.32% 0.196 313.2)
XYZxyz(19.5995, 10.9458, 42.6668)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A33B1 #5AB133
analogous
#4B33B1 #8A33B1 #B13399
triadic
#8A33B1 #B18A33 #33B18A
tetradic
#8A33B1 #B14B33 #5AB133 #3399B1
square
#8A33B1 #B14B33 #5AB133 #3399B1
split-complementary
#8A33B1 #99B133 #33B14B
monochromatic
#401852 #652581 #8A33B1 #A854CE #C083DB

Accessibility & contrast

On white

6.59
#8A33B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A33B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A33B1
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A33B1#FFFFFF#000000##FFFFFF
##8A33B11.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B5
Deuteranopia (green-blind)
#285FAE
Tritanopia (blue-blind)
#864E6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a33b1;
/* rgb */ color: rgb(138, 51, 177);
/* oklch */ color: oklch(50.3% 0.196 313.2);
Tailwind
colors: {
  custom: {
    50: '#b072c9',
    500: '#8a33b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a33b1;
$custom-light: #b072c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a33b1",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 177
  },
  "hsl": {
    "h": 281.429,
    "s": 55.263,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50318,
    "c": 0.19617,
    "h": 313.2
  },
  "luminance": 0.10945
}

Semantic roles & 50–950 ramp

primary
#8A33B1
secondary
#92C57B
accent
#DF4977
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A33B1

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

Preview Lab → · Contrast checker → · Palette generator →

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