#8A2DB1#8A2DB1

#8A2DB1 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.7% C 0.203 H 313.7°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8A2DB1
RGBrgb(138, 45, 177)
HSLhsl(282, 59%, 44%)
HSVhsv(282, 75%, 69%)
CMYKcmyk(22%, 74.6%, 0%, 30.6%)
CIE-LABlab(38.65, 58.61, -52.04)
CIE-LCHlch(38.65, 78.38, 318.40°)
OKLaboklab(49.72% 0.1402 -0.147)
OKLCHoklch(49.72% 0.203 313.7)
XYZxyz(19.3541, 10.4550, 42.5850)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB1 #54B12D
analogous
#482DB1 #8A2DB1 #B12D96
triadic
#8A2DB1 #B18A2D #2DB18A
tetradic
#8A2DB1 #B1482D #54B12D #2D96B1
square
#8A2DB1 #B1482D #54B12D #2D96B1
split-complementary
#8A2DB1 #96B12D #2DB148
monochromatic
#3E144F #642180 #8A2DB1 #A94AD1 #C07BDD

Accessibility & contrast

On white

6.79
#8A2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A2DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DB1
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DB1#FFFFFF#000000##FFFFFF
##8A2DB11.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#225DAE
Tritanopia (blue-blind)
#864A6D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2db1;
/* rgb */ color: rgb(138, 45, 177);
/* oklch */ color: oklch(49.7% 0.203 313.7);
Tailwind
colors: {
  custom: {
    50: '#b070c9',
    500: '#8a2db1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db1;
$custom-light: #b070c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db1",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 282.273,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4972,
    "c": 0.20312,
    "h": 313.7
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

primary
#8A2DB1
secondary
#8CC674
accent
#E34574
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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