#8A2BAB#8A2BAB

#8A2BAB is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.200 H 315.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8A2BAB
RGBrgb(138, 43, 171)
HSLhsl(285, 60%, 42%)
HSVhsv(285, 75%, 67%)
CMYKcmyk(19.3%, 74.9%, 0%, 32.9%)
CIE-LABlab(37.97, 58.14, -49.56)
CIE-LCHlch(37.97, 76.40, 319.56°)
OKLaboklab(49.11% 0.1429 -0.1397)
OKLCHoklch(49.11% 0.2 315.7)
XYZxyz(18.6946, 10.0720, 39.4795)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BAB #4CAB2B
analogous
#4A2BAB #8A2BAB #AB2B8C
triadic
#8A2BAB #AB8A2B #2BAB8A
tetradic
#8A2BAB #AB4A2B #4CAB2B #2B8CAB
square
#8A2BAB #AB4A2B #4CAB2B #2B8CAB
split-complementary
#8A2BAB #8CAB2B #2BAB4A
monochromatic
#3B1249 #631F7A #8A2BAB #AC43D0 #C174DC

Accessibility & contrast

On white

6.97
#8A2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2BAB
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BAB#FFFFFF#000000##FFFFFF
##8A2BAB1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#285CA8
Tritanopia (blue-blind)
#884769
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2bab;
/* rgb */ color: rgb(138, 43, 171);
/* oklch */ color: oklch(49.1% 0.200 315.7);
Tailwind
colors: {
  custom: {
    50: '#b06ec5',
    500: '#8a2bab',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bab;
$custom-light: #b06ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bab",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 284.531,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4911,
    "c": 0.19985,
    "h": 315.7
  },
  "luminance": 0.10071
}

Semantic roles & 50–950 ramp

primary
#8A2BAB
secondary
#84C46E
accent
#E3456E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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