#8A2D87#8A2D87

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

Color values

HEX#8A2D87
RGBrgb(138, 45, 135)
HSLhsl(302, 51%, 36%)
HSVhsv(302, 67%, 54%)
CMYKcmyk(0%, 67.4%, 2.2%, 45.9%)
CIE-LABlab(36.04, 50.56, -30.80)
CIE-LCHlch(36.04, 59.20, 328.65°)
OKLaboklab(47.02% 0.1422 -0.0849)
OKLCHoklch(47.02% 0.166 329.2)
XYZxyz(15.7926, 9.0304, 23.8282)
Luminance0.0903 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D87 #2D8A30
analogous
#5E2D8A #8A2D87 #8A2D58
triadic
#8A2D87 #878A2D #2D878A
tetradic
#8A2D87 #8A5E2D #2D8A30 #2D588A
square
#8A2D87 #8A5E2D #2D8A30 #2D588A
split-complementary
#8A2D87 #588A2D #2D8A5E
monochromatic
#2E0F2D #5C1E5A #8A2D87 #B83CB4 #CD65C9

Accessibility & contrast

On white

7.48
#8A2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D87
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D87#FFFFFF#000000##FFFFFF
##8A2D871.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234D8A
Deuteranopia (green-blind)
#465985
Tritanopia (blue-blind)
#8F3956
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2d87;
/* rgb */ color: rgb(138, 45, 135);
/* oklch */ color: oklch(47.0% 0.166 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6eaa',
    500: '#8a2d87',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d87;
$custom-light: #af6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d87",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 301.935,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47022,
    "c": 0.16567,
    "h": 329.2
  },
  "luminance": 0.09029
}

Semantic roles & 50–950 ramp

primary
#8A2D87
secondary
#60B362
accent
#DA524D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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