#8A2187#8A2187

#8A2187 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.9% C 0.180 H 329.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#8A2187
RGBrgb(138, 33, 135)
HSLhsl(302, 61%, 34%)
HSVhsv(302, 76%, 54%)
CMYKcmyk(0%, 76.1%, 2.2%, 45.9%)
CIE-LABlab(34.48, 54.98, -33.27)
CIE-LCHlch(34.48, 64.26, 328.82°)
OKLaboklab(45.9% 0.1549 -0.092)
OKLCHoklch(45.9% 0.18 329.3)
XYZxyz(15.3981, 8.2414, 23.6967)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2187 #218A24
analogous
#58218A #8A2187 #8A2152
triadic
#8A2187 #878A21 #21878A
tetradic
#8A2187 #8A5821 #218A24 #21528A
square
#8A2187 #8A5821 #218A24 #21528A
split-complementary
#8A2187 #528A21 #218A58
monochromatic
#270926 #591557 #8A2187 #BB2DB7 #D550D1

Accessibility & contrast

On white

7.93
#8A2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2187
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2187#FFFFFF#000000##FFFFFF
##8A21871.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10488A
Deuteranopia (green-blind)
#405684
Tritanopia (blue-blind)
#8F3052
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2187;
/* rgb */ color: rgb(138, 33, 135);
/* oklch */ color: oklch(45.9% 0.180 329.3);
Tailwind
colors: {
  custom: {
    50: '#b069aa',
    500: '#8a2187',
    950: '#000000',
  },
}
SCSS
$custom: #8a2187;
$custom-light: #b069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2187",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 301.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.45899,
    "c": 0.18013,
    "h": 329.3
  },
  "luminance": 0.0824
}

Semantic roles & 50–950 ramp

primary
#8A2187
secondary
#4EB951
accent
#E54843
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2187

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

Preview Lab → · Contrast checker → · Palette generator →

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