#8A5182#8A5182

#8A5182 is a mid, moderate purple. Relative luminance 0.129; OKLCH L 51.8% C 0.101 H 332.2°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8A5182
RGBrgb(138, 81, 130)
HSLhsl(308, 26%, 43%)
HSVhsv(308, 41%, 54%)
CMYKcmyk(0%, 41.3%, 5.8%, 45.9%)
CIE-LABlab(42.61, 31.55, -17.51)
CIE-LCHlch(42.61, 36.08, 330.97°)
OKLaboklab(51.8% 0.0897 -0.0474)
OKLCHoklch(51.8% 0.101 332.2)
XYZxyz(17.4528, 12.9007, 22.6856)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5182 #518A59
analogous
#75518A #8A5182 #8A5165
triadic
#8A5182 #828A51 #51828A
tetradic
#8A5182 #8A7551 #518A59 #51658A
square
#8A5182 #8A7551 #518A59 #51658A
split-complementary
#8A5182 #658A51 #518A75
monochromatic
#3D2439 #633A5E #8A5182 #AA6EA2 #C195BA

Accessibility & contrast

On white

5.87
#8A5182 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A5182 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5182
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5182#FFFFFF#000000##FFFFFF
##8A51821.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506084
Deuteranopia (green-blind)
#5F6880
Tritanopia (blue-blind)
#8F5463
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a5182;
/* rgb */ color: rgb(138, 81, 130);
/* oklch */ color: oklch(51.8% 0.101 332.2);
Tailwind
colors: {
  custom: {
    50: '#ad83a6',
    500: '#8a5182',
    950: '#000000',
  },
}
SCSS
$custom: #8a5182;
$custom-light: #ad83a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5182",
  "rgb": {
    "r": 138,
    "g": 81,
    "b": 130
  },
  "hsl": {
    "h": 308.421,
    "s": 26.027,
    "l": 42.941
  },
  "oklch": {
    "l": 0.51797,
    "c": 0.10146,
    "h": 332.2
  },
  "luminance": 0.129
}

Semantic roles & 50–950 ramp

primary
#8A5182
secondary
#89AE8E
accent
#C27265
background
#FAF8FA
surface
#F4EFF4
border
#CECACE
text
#100B0F
muted
#7F7C7F

Preview Lab

Preview with #8A5182

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

Preview Lab → · Contrast checker → · Palette generator →

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