#8A2C87#8A2C87

#8A2C87 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.167 H 329.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A2C87
RGBrgb(138, 44, 135)
HSLhsl(302, 52%, 36%)
HSVhsv(302, 68%, 54%)
CMYKcmyk(0%, 68.1%, 2.2%, 45.9%)
CIE-LABlab(35.90, 50.96, -31.02)
CIE-LCHlch(35.90, 59.66, 328.67°)
OKLaboklab(46.92% 0.1434 -0.0856)
OKLCHoklch(46.92% 0.167 329.2)
XYZxyz(15.7549, 8.9550, 23.8157)
Luminance0.0895 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C87 #2C8A2F
analogous
#5E2C8A #8A2C87 #8A2C58
triadic
#8A2C87 #878A2C #2C878A
tetradic
#8A2C87 #8A5E2C #2C8A2F #2C588A
square
#8A2C87 #8A5E2C #2C8A2F #2C588A
split-complementary
#8A2C87 #588A2C #2C8A5E
monochromatic
#2D0E2C #5C1D5A #8A2C87 #B83BB4 #CD63CA

Accessibility & contrast

On white

7.52
#8A2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C87
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C87#FFFFFF#000000##FFFFFF
##8A2C871.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214C8A
Deuteranopia (green-blind)
#455985
Tritanopia (blue-blind)
#8F3856
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2c87;
/* rgb */ color: rgb(138, 44, 135);
/* oklch */ color: oklch(46.9% 0.167 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6daa',
    500: '#8a2c87',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c87;
$custom-light: #af6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c87",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 301.915,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46917,
    "c": 0.167,
    "h": 329.2
  },
  "luminance": 0.08954
}

Semantic roles & 50–950 ramp

primary
#8A2C87
secondary
#5EB461
accent
#DB514D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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