#8A2DB4#8A2DB4

#8A2DB4 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 49.9% C 0.206 H 312.7°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#8A2DB4
RGBrgb(138, 45, 180)
HSLhsl(281, 60%, 44%)
HSVhsv(281, 75%, 71%)
CMYKcmyk(23.3%, 75%, 0%, 29.4%)
CIE-LABlab(38.86, 59.23, -53.48)
CIE-LCHlch(38.86, 79.80, 317.92°)
OKLaboklab(49.94% 0.1398 -0.1512)
OKLCHoklch(49.94% 0.206 312.7)
XYZxyz(19.6564, 10.5759, 44.1771)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB4 #57B42D
analogous
#462DB4 #8A2DB4 #B42D9B
triadic
#8A2DB4 #B48A2D #2DB48A
tetradic
#8A2DB4 #B4462D #57B42D #2D9BB4
square
#8A2DB4 #B4462D #57B42D #2D9BB4
split-complementary
#8A2DB4 #9BB42D #2DB446
monochromatic
#3F1552 #642183 #8A2DB4 #A84CD2 #C07DDE

Accessibility & contrast

On white

6.74
#8A2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A2DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DB4
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DB4#FFFFFF#000000##FFFFFF
##8A2DB41.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B8
Deuteranopia (green-blind)
#1C5DB1
Tritanopia (blue-blind)
#854C6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2db4;
/* rgb */ color: rgb(138, 45, 180);
/* oklch */ color: oklch(49.9% 0.206 312.7);
Tailwind
colors: {
  custom: {
    50: '#b170cb',
    500: '#8a2db4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db4;
$custom-light: #b170cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db4",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 281.333,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49935,
    "c": 0.20589,
    "h": 312.7
  },
  "luminance": 0.10575
}

Semantic roles & 50–950 ramp

primary
#8A2DB4
secondary
#8FC776
accent
#E34576
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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