#8A2181#8A2181

#8A2181 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.175 H 331.9°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#8A2181
RGBrgb(138, 33, 129)
HSLhsl(305, 61%, 34%)
HSVhsv(305, 76%, 54%)
CMYKcmyk(0%, 76.1%, 6.5%, 45.9%)
CIE-LABlab(34.14, 53.99, -30.07)
CIE-LCHlch(34.14, 61.80, 330.88°)
OKLaboklab(45.55% 0.1547 -0.0827)
OKLCHoklch(45.55% 0.175 331.9)
XYZxyz(14.9876, 8.0772, 21.5343)
Luminance0.0808 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2181 #218A2A
analogous
#5E218A #8A2181 #8A214C
triadic
#8A2181 #818A21 #21818A
tetradic
#8A2181 #8A5E21 #218A2A #214C8A
square
#8A2181 #8A5E21 #218A2A #214C8A
split-complementary
#8A2181 #4C8A21 #218A5E
monochromatic
#270925 #591553 #8A2181 #BB2DAF #D550CA

Accessibility & contrast

On white

8.03
#8A2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2181
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2181#FFFFFF#000000##FFFFFF
##8A21811.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194784
Deuteranopia (green-blind)
#43557E
Tritanopia (blue-blind)
#902D4F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a2181;
/* rgb */ color: rgb(138, 33, 129);
/* oklch */ color: oklch(45.5% 0.175 331.9);
Tailwind
colors: {
  custom: {
    50: '#b068a6',
    500: '#8a2181',
    950: '#000000',
  },
}
SCSS
$custom: #8a2181;
$custom-light: #b068a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2181",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 305.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45548,
    "c": 0.17548,
    "h": 331.9
  },
  "luminance": 0.08076
}

Semantic roles & 50–950 ramp

primary
#8A2181
secondary
#4EB957
accent
#E55143
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2181

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

Preview Lab → · Contrast checker → · Palette generator →

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