#8A2B9D#8A2B9D

#8A2B9D is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.187 H 320.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8A2B9D
RGBrgb(138, 43, 157)
HSLhsl(290, 57%, 39%)
HSVhsv(290, 73%, 62%)
CMYKcmyk(12.1%, 72.6%, 0%, 38.4%)
CIE-LABlab(37.05, 55.40, -42.63)
CIE-LCHlch(37.05, 69.90, 322.42°)
OKLaboklab(48.16% 0.1443 -0.1194)
OKLCHoklch(48.16% 0.187 320.4)
XYZxyz(17.4302, 9.5662, 32.8201)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B9D #3E9D2B
analogous
#512B9D #8A2B9D #9D2B77
triadic
#8A2B9D #9D8A2B #2B9D8A
tetradic
#8A2B9D #9D512B #3E9D2B #2B779D
square
#8A2B9D #9D512B #3E9D2B #2B779D
split-complementary
#8A2B9D #779D2B #2B9D51
monochromatic
#36113D #601E6D #8A2B9D #B23CCA #C56CD7

Accessibility & contrast

On white

7.21
#8A2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B9D
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B9D#FFFFFF#000000##FFFFFF
##8A2B9D1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#365A9A
Tritanopia (blue-blind)
#8B4161
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2b9d;
/* rgb */ color: rgb(138, 43, 157);
/* oklch */ color: oklch(48.2% 0.187 320.4);
Tailwind
colors: {
  custom: {
    50: '#b06eba',
    500: '#8a2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b9d;
$custom-light: #b06eba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b9d",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 290,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48163,
    "c": 0.18729,
    "h": 320.4
  },
  "luminance": 0.09565
}

Semantic roles & 50–950 ramp

primary
#8A2B9D
secondary
#75BD66
accent
#E04861
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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