#8A2E87#8A2E87

#8A2E87 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.164 H 329.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#8A2E87
RGBrgb(138, 46, 135)
HSLhsl(302, 50%, 36%)
HSVhsv(302, 67%, 54%)
CMYKcmyk(0%, 66.7%, 2.2%, 45.9%)
CIE-LABlab(36.19, 50.14, -30.56)
CIE-LCHlch(36.19, 58.72, 328.64°)
OKLaboklab(47.13% 0.1411 -0.0843)
OKLCHoklch(47.13% 0.164 329.1)
XYZxyz(15.8313, 9.1076, 23.8411)
Luminance0.0911 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E87 #2E8A31
analogous
#5F2E8A #8A2E87 #8A2E59
triadic
#8A2E87 #878A2E #2E878A
tetradic
#8A2E87 #8A5F2E #2E8A31 #2E598A
square
#8A2E87 #8A5F2E #2E8A31 #2E598A
split-complementary
#8A2E87 #598A2E #2E8A5F
monochromatic
#2E0F2D #5C1F5A #8A2E87 #B83DB4 #CC66C9

Accessibility & contrast

On white

7.44
#8A2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E87
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E87#FFFFFF#000000##FFFFFF
##8A2E871.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2e87;
/* rgb */ color: rgb(138, 46, 135);
/* oklch */ color: oklch(47.1% 0.164 329.1);
Tailwind
colors: {
  custom: {
    50: '#af6eaa',
    500: '#8a2e87',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e87;
$custom-light: #af6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e87",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 301.957,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.16431,
    "h": 329.1
  },
  "luminance": 0.09107
}

Semantic roles & 50–950 ramp

primary
#8A2E87
secondary
#61B364
accent
#DA534E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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