#8A2186#8A2186

#8A2186 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.179 H 329.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2186
RGBrgb(138, 33, 134)
HSLhsl(302, 61%, 34%)
HSVhsv(302, 76%, 54%)
CMYKcmyk(0%, 76.1%, 2.9%, 45.9%)
CIE-LABlab(34.42, 54.81, -32.74)
CIE-LCHlch(34.42, 63.85, 329.15°)
OKLaboklab(45.84% 0.1549 -0.0905)
OKLCHoklch(45.84% 0.179 329.7)
XYZxyz(15.3281, 8.2134, 23.3277)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2186 #218A25
analogous
#59218A #8A2186 #8A2151
triadic
#8A2186 #868A21 #21868A
tetradic
#8A2186 #8A5921 #218A25 #21518A
square
#8A2186 #8A5921 #218A25 #21518A
split-complementary
#8A2186 #518A21 #218A59
monochromatic
#270926 #591556 #8A2186 #BB2DB6 #D550D0

Accessibility & contrast

On white

7.95
#8A2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2186
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2186#FFFFFF#000000##FFFFFF
##8A21861.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124889
Deuteranopia (green-blind)
#415683
Tritanopia (blue-blind)
#8F3052
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2186;
/* rgb */ color: rgb(138, 33, 134);
/* oklch */ color: oklch(45.8% 0.179 329.7);
Tailwind
colors: {
  custom: {
    50: '#b068a9',
    500: '#8a2186',
    950: '#000000',
  },
}
SCSS
$custom: #8a2186;
$custom-light: #b068a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2186",
  "rgb": {
    "r": 138,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 302.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4584,
    "c": 0.17935,
    "h": 329.7
  },
  "luminance": 0.08212
}

Semantic roles & 50–950 ramp

primary
#8A2186
secondary
#4EB952
accent
#E54943
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2186

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

Preview Lab → · Contrast checker → · Palette generator →

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