#8A2C9D#8A2C9D

#8A2C9D is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.186 H 320.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A2C9D
RGBrgb(138, 44, 157)
HSLhsl(290, 56%, 39%)
HSVhsv(290, 72%, 62%)
CMYKcmyk(12.1%, 72%, 0%, 38.4%)
CIE-LABlab(37.19, 55.01, -42.41)
CIE-LCHlch(37.19, 69.46, 322.37°)
OKLaboklab(48.26% 0.1433 -0.1187)
OKLCHoklch(48.26% 0.186 320.4)
XYZxyz(17.4670, 9.6398, 32.8324)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C9D #3F9D2C
analogous
#522C9D #8A2C9D #9D2C77
triadic
#8A2C9D #9D8A2C #2C9D8A
tetradic
#8A2C9D #9D522C #3F9D2C #2C779D
square
#8A2C9D #9D522C #3F9D2C #2C779D
split-complementary
#8A2C9D #779D2C #2C9D52
monochromatic
#36113D #601F6D #8A2C9D #B13DC9 #C56DD6

Accessibility & contrast

On white

7.17
#8A2C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A2C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C9D
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C9D#FFFFFF#000000##FFFFFF
##8A2C9D1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#375B9A
Tritanopia (blue-blind)
#8B4162
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2c9d;
/* rgb */ color: rgb(138, 44, 157);
/* oklch */ color: oklch(48.3% 0.186 320.4);
Tailwind
colors: {
  custom: {
    50: '#b06eba',
    500: '#8a2c9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c9d;
$custom-light: #b06eba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c9d",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 289.912,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4826,
    "c": 0.1861,
    "h": 320.4
  },
  "luminance": 0.09639
}

Semantic roles & 50–950 ramp

primary
#8A2C9D
secondary
#76BD68
accent
#E04862
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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