#8A2C8D#8A2C8D

#8A2C8D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.172 H 326.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#8A2C8D
RGBrgb(138, 44, 141)
HSLhsl(298, 52%, 36%)
HSVhsv(298, 69%, 55%)
CMYKcmyk(2.1%, 68.8%, 0%, 44.7%)
CIE-LABlab(36.23, 52.03, -34.19)
CIE-LCHlch(36.23, 62.26, 326.69°)
OKLaboklab(47.27% 0.1436 -0.0948)
OKLCHoklch(47.27% 0.172 326.6)
XYZxyz(16.1893, 9.1288, 26.1035)
Luminance0.0913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C8D #2F8D2C
analogous
#5A2C8D #8A2C8D #8D2C60
triadic
#8A2C8D #8D8A2C #2C8D8A
tetradic
#8A2C8D #8D5A2C #2F8D2C #2C608D
square
#8A2C8D #8D5A2C #2F8D2C #2C608D
split-complementary
#8A2C8D #608D2C #2C8D5A
monochromatic
#2F0F30 #5C1D5E #8A2C8D #B83BBC #CC65CF

Accessibility & contrast

On white

7.43
#8A2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C8D
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C8D#FFFFFF#000000##FFFFFF
##8A2C8D1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#42598A
Tritanopia (blue-blind)
#8E3A59
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2c8d;
/* rgb */ color: rgb(138, 44, 141);
/* oklch */ color: oklch(47.3% 0.172 326.6);
Tailwind
colors: {
  custom: {
    50: '#af6eaf',
    500: '#8a2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c8d;
$custom-light: #af6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c8d",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 298.144,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47266,
    "c": 0.17208,
    "h": 326.6
  },
  "luminance": 0.09128
}

Semantic roles & 50–950 ramp

primary
#8A2C8D
secondary
#62B560
accent
#DC4C50
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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