#8A2BAD#8A2BAD

#8A2BAD is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.202 H 315.0°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A2BAD
RGBrgb(138, 43, 173)
HSLhsl(284, 60%, 42%)
HSVhsv(284, 75%, 68%)
CMYKcmyk(20.2%, 75.1%, 0%, 32.2%)
CIE-LABlab(38.11, 58.55, -50.53)
CIE-LCHlch(38.11, 77.34, 319.20°)
OKLaboklab(49.25% 0.1427 -0.1425)
OKLCHoklch(49.25% 0.202 315)
XYZxyz(18.8867, 10.1489, 40.4911)
Luminance0.1015 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BAD #4EAD2B
analogous
#492BAD #8A2BAD #AD2B8F
triadic
#8A2BAD #AD8A2B #2BAD8A
tetradic
#8A2BAD #AD492B #4EAD2B #2B8FAD
square
#8A2BAD #AD492B #4EAD2B #2B8FAD
split-complementary
#8A2BAD #8FAD2B #2BAD49
monochromatic
#3C134B #631F7C #8A2BAD #AB45D1 #C176DD

Accessibility & contrast

On white

6.93
#8A2BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A2BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BAD
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BAD#FFFFFF#000000##FFFFFF
##8A2BAD1.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#255CAA
Tritanopia (blue-blind)
#87486A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2bad;
/* rgb */ color: rgb(138, 43, 173);
/* oklch */ color: oklch(49.3% 0.202 315.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec6',
    500: '#8a2bad',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bad;
$custom-light: #b06ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bad",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 283.846,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4925,
    "c": 0.20165,
    "h": 315
  },
  "luminance": 0.10148
}

Semantic roles & 50–950 ramp

primary
#8A2BAD
secondary
#86C46F
accent
#E3446F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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