#8A2DB5#8A2DB5

#8A2DB5 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.0% C 0.207 H 312.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8A2DB5
RGBrgb(138, 45, 181)
HSLhsl(281, 60%, 44%)
HSVhsv(281, 75%, 71%)
CMYKcmyk(23.8%, 75.1%, 0%, 29%)
CIE-LABlab(38.93, 59.44, -53.96)
CIE-LCHlch(38.93, 80.28, 317.77°)
OKLaboklab(50.01% 0.1396 -0.1526)
OKLCHoklch(50.01% 0.207 312.5)
XYZxyz(19.7586, 10.6168, 44.7155)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB5 #58B52D
analogous
#462DB5 #8A2DB5 #B52D9C
triadic
#8A2DB5 #B58A2D #2DB58A
tetradic
#8A2DB5 #B5462D #58B52D #2D9CB5
square
#8A2DB5 #B5462D #58B52D #2D9CB5
split-complementary
#8A2DB5 #9CB52D #2DB546
monochromatic
#3F1553 #652184 #8A2DB5 #A84DD3 #C07EDF

Accessibility & contrast

On white

6.72
#8A2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2DB5
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DB5#FFFFFF#000000##FFFFFF
##8A2DB51.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#1A5EB2
Tritanopia (blue-blind)
#854C6F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2db5;
/* rgb */ color: rgb(138, 45, 181);
/* oklch */ color: oklch(50.0% 0.207 312.5);
Tailwind
colors: {
  custom: {
    50: '#b170cc',
    500: '#8a2db5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db5;
$custom-light: #b170cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db5",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 281.029,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50007,
    "c": 0.20681,
    "h": 312.5
  },
  "luminance": 0.10616
}

Semantic roles & 50–950 ramp

primary
#8A2DB5
secondary
#90C776
accent
#E34477
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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