#8A2CAB#8A2CAB

#8A2CAB is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.199 H 315.6°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A2CAB
RGBrgb(138, 44, 171)
HSLhsl(284, 59%, 42%)
HSVhsv(284, 74%, 67%)
CMYKcmyk(19.3%, 74.3%, 0%, 32.9%)
CIE-LABlab(38.10, 57.77, -49.35)
CIE-LCHlch(38.10, 75.98, 319.49°)
OKLaboklab(49.2% 0.142 -0.1391)
OKLCHoklch(49.2% 0.199 315.6)
XYZxyz(18.7314, 10.1456, 39.4918)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CAB #4DAB2C
analogous
#4A2CAB #8A2CAB #AB2C8D
triadic
#8A2CAB #AB8A2C #2CAB8A
tetradic
#8A2CAB #AB4A2C #4DAB2C #2C8DAB
square
#8A2CAB #AB4A2C #4DAB2C #2C8DAB
split-complementary
#8A2CAB #8DAB2C #2CAB4A
monochromatic
#3B134A #631F7A #8A2CAB #AB45CF #C176DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2CAB#FFFFFF#000000##FFFFFF
##8A2CAB1.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)
#0054AF
Deuteranopia (green-blind)
#295CA8
Tritanopia (blue-blind)
#884769
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2cab;
/* rgb */ color: rgb(138, 44, 171);
/* oklch */ color: oklch(49.2% 0.199 315.6);
Tailwind
colors: {
  custom: {
    50: '#b06fc5',
    500: '#8a2cab',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cab;
$custom-light: #b06fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cab",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 284.409,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49203,
    "c": 0.19874,
    "h": 315.6
  },
  "luminance": 0.10145
}

Semantic roles & 50–950 ramp

primary
#8A2CAB
secondary
#85C36F
accent
#E2466E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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