#8A2182#8A2182

#8A2182 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.176 H 331.4°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#8A2182
RGBrgb(138, 33, 130)
HSLhsl(305, 61%, 34%)
HSVhsv(305, 76%, 54%)
CMYKcmyk(0%, 76.1%, 5.8%, 45.9%)
CIE-LABlab(34.20, 54.16, -30.61)
CIE-LCHlch(34.20, 62.21, 330.53°)
OKLaboklab(45.61% 0.1548 -0.0843)
OKLCHoklch(45.61% 0.176 331.4)
XYZxyz(15.0544, 8.1039, 21.8861)
Luminance0.0810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2182 #218A29
analogous
#5D218A #8A2182 #8A214D
triadic
#8A2182 #828A21 #21828A
tetradic
#8A2182 #8A5D21 #218A29 #214D8A
square
#8A2182 #8A5D21 #218A29 #214D8A
split-complementary
#8A2182 #4D8A21 #218A5D
monochromatic
#270925 #591553 #8A2182 #BB2DB1 #D550CB

Accessibility & contrast

On white

8.01
#8A2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2182
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2182#FFFFFF#000000##FFFFFF
##8A21821.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184785
Deuteranopia (green-blind)
#43567F
Tritanopia (blue-blind)
#902E50
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2182;
/* rgb */ color: rgb(138, 33, 130);
/* oklch */ color: oklch(45.6% 0.176 331.4);
Tailwind
colors: {
  custom: {
    50: '#b068a7',
    500: '#8a2182',
    950: '#000000',
  },
}
SCSS
$custom: #8a2182;
$custom-light: #b068a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2182",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 304.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.17624,
    "h": 331.4
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#8A2182
secondary
#4EB956
accent
#E55043
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2182

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

Preview Lab → · Contrast checker → · Palette generator →

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