#8A2188#8A2188

#8A2188 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.181 H 328.9°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8A2188
RGBrgb(138, 33, 136)
HSLhsl(301, 61%, 34%)
HSVhsv(301, 76%, 54%)
CMYKcmyk(0%, 76.1%, 1.4%, 45.9%)
CIE-LABlab(34.54, 55.15, -33.79)
CIE-LCHlch(34.54, 64.68, 328.50°)
OKLaboklab(45.96% 0.1549 -0.0935)
OKLCHoklch(45.96% 0.181 328.9)
XYZxyz(15.4689, 8.2697, 24.0693)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2188 #218A23
analogous
#57218A #8A2188 #8A2153
triadic
#8A2188 #888A21 #21888A
tetradic
#8A2188 #8A5721 #218A23 #21538A
square
#8A2188 #8A5721 #218A23 #21538A
split-complementary
#8A2188 #538A21 #218A57
monochromatic
#270927 #591557 #8A2188 #BB2DB9 #D550D3

Accessibility & contrast

On white

7.91
#8A2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2188
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2188#FFFFFF#000000##FFFFFF
##8A21881.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488B
Deuteranopia (green-blind)
#3F5685
Tritanopia (blue-blind)
#8F3153
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2188;
/* rgb */ color: rgb(138, 33, 136);
/* oklch */ color: oklch(46.0% 0.181 328.9);
Tailwind
colors: {
  custom: {
    50: '#b069ab',
    500: '#8a2188',
    950: '#000000',
  },
}
SCSS
$custom: #8a2188;
$custom-light: #b069ab;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2188",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 301.143,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45959,
    "c": 0.18091,
    "h": 328.9
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#8A2188
secondary
#4EB950
accent
#E54643
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2188

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

Preview Lab → · Contrast checker → · Palette generator →

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