#8A2BAA#8A2BAA

#8A2BAA is a mid, vivid purple. Relative luminance 0.100; OKLCH L 49.0% C 0.199 H 316.0°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8A2BAA
RGBrgb(138, 43, 170)
HSLhsl(285, 60%, 42%)
HSVhsv(285, 75%, 67%)
CMYKcmyk(18.8%, 74.7%, 0%, 33.3%)
CIE-LABlab(37.90, 57.94, -49.07)
CIE-LCHlch(37.90, 75.93, 319.74°)
OKLaboklab(49.04% 0.1431 -0.1382)
OKLCHoklch(49.04% 0.199 316)
XYZxyz(18.5997, 10.0340, 38.9794)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BAA #4BAA2B
analogous
#4B2BAA #8A2BAA #AA2B8B
triadic
#8A2BAA #AA8A2B #2BAA8A
tetradic
#8A2BAA #AA4B2B #4BAA2B #2B8BAA
square
#8A2BAA #AA4B2B #4BAA2B #2B8BAA
split-complementary
#8A2BAA #8BAA2B #2BAA4B
monochromatic
#3B1248 #621F79 #8A2BAA #AC43CF #C274DC

Accessibility & contrast

On white

6.98
#8A2BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A2BAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BAA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BAA#FFFFFF#000000##FFFFFF
##8A2BAA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#295CA7
Tritanopia (blue-blind)
#884669
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2baa;
/* rgb */ color: rgb(138, 43, 170);
/* oklch */ color: oklch(49.0% 0.199 316.0);
Tailwind
colors: {
  custom: {
    50: '#b06ec4',
    500: '#8a2baa',
    950: '#000000',
  },
}
SCSS
$custom: #8a2baa;
$custom-light: #b06ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2baa",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 284.882,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4904,
    "c": 0.19894,
    "h": 316
  },
  "luminance": 0.10033
}

Semantic roles & 50–950 ramp

primary
#8A2BAA
secondary
#83C36E
accent
#E3456D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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