#8A2B9E#8A2B9E

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

Color values

HEX#8A2B9E
RGBrgb(138, 43, 158)
HSLhsl(290, 57%, 39%)
HSVhsv(290, 73%, 62%)
CMYKcmyk(12.7%, 72.8%, 0%, 38%)
CIE-LABlab(37.12, 55.59, -43.13)
CIE-LCHlch(37.12, 70.36, 322.19°)
OKLaboklab(48.23% 0.1443 -0.1208)
OKLCHoklch(48.23% 0.188 320.1)
XYZxyz(17.5159, 9.6005, 33.2716)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B9E #3F9E2B
analogous
#512B9E #8A2B9E #9E2B79
triadic
#8A2B9E #9E8A2B #2B9E8A
tetradic
#8A2B9E #9E512B #3F9E2B #2B799E
square
#8A2B9E #9E512B #3F9E2B #2B799E
split-complementary
#8A2B9E #799E2B #2B9E51
monochromatic
#36113E #601E6E #8A2B9E #B13CCA #C56CD7

Accessibility & contrast

On white

7.19
#8A2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B9E
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B9E#FFFFFF#000000##FFFFFF
##8A2B9E1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A1
Deuteranopia (green-blind)
#355B9B
Tritanopia (blue-blind)
#8A4162
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2b9e;
/* rgb */ color: rgb(138, 43, 158);
/* oklch */ color: oklch(48.2% 0.188 320.1);
Tailwind
colors: {
  custom: {
    50: '#b06ebb',
    500: '#8a2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b9e;
$custom-light: #b06ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b9e",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 289.565,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.18818,
    "h": 320.1
  },
  "luminance": 0.096
}

Semantic roles & 50–950 ramp

primary
#8A2B9E
secondary
#76BE67
accent
#E04762
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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