#8A2CA5#8A2CA5

#8A2CA5 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.193 H 317.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A2CA5
RGBrgb(138, 44, 165)
HSLhsl(287, 58%, 41%)
HSVhsv(287, 73%, 65%)
CMYKcmyk(16.4%, 73.3%, 0%, 35.3%)
CIE-LABlab(37.70, 56.57, -46.40)
CIE-LCHlch(37.70, 73.17, 320.64°)
OKLaboklab(48.79% 0.1427 -0.1304)
OKLCHoklch(48.79% 0.193 317.6)
XYZxyz(18.1725, 9.9220, 36.5479)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CA5 #47A52C
analogous
#4E2CA5 #8A2CA5 #A52C83
triadic
#8A2CA5 #A58A2C #2CA58A
tetradic
#8A2CA5 #A54E2C #47A52C #2C83A5
square
#8A2CA5 #A54E2C #47A52C #2C83A5
split-complementary
#8A2CA5 #83A52C #2CA54E
monochromatic
#391244 #621F75 #8A2CA5 #AE42CD #C272D9

Accessibility & contrast

On white

7.04
#8A2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2CA5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CA5#FFFFFF#000000##FFFFFF
##8A2CA51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#305CA2
Tritanopia (blue-blind)
#894566
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2ca5;
/* rgb */ color: rgb(138, 44, 165);
/* oklch */ color: oklch(48.8% 0.193 317.6);
Tailwind
colors: {
  custom: {
    50: '#b06fc0',
    500: '#8a2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ca5;
$custom-light: #b06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ca5",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 286.612,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48791,
    "c": 0.19329,
    "h": 317.6
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#8A2CA5
secondary
#7FC16C
accent
#E14769
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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