#8A2B87#8A2B87

#8A2B87 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.168 H 329.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#8A2B87
RGBrgb(138, 43, 135)
HSLhsl(302, 52%, 35%)
HSVhsv(302, 69%, 54%)
CMYKcmyk(0%, 68.8%, 2.2%, 45.9%)
CIE-LABlab(35.75, 51.36, -31.25)
CIE-LCHlch(35.75, 60.12, 328.68°)
OKLaboklab(46.82% 0.1445 -0.0862)
OKLCHoklch(46.82% 0.168 329.2)
XYZxyz(15.7181, 8.8814, 23.8034)
Luminance0.0888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B87 #2B8A2E
analogous
#5D2B8A #8A2B87 #8A2B57
triadic
#8A2B87 #878A2B #2B878A
tetradic
#8A2B87 #8A5D2B #2B8A2E #2B578A
square
#8A2B87 #8A5D2B #2B8A2E #2B578A
split-complementary
#8A2B87 #578A2B #2B8A5D
monochromatic
#2D0E2C #5B1C59 #8A2B87 #B93AB5 #CE61CA

Accessibility & contrast

On white

7.56
#8A2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B87
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B87#FFFFFF#000000##FFFFFF
##8A2B871.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2b87;
/* rgb */ color: rgb(138, 43, 135);
/* oklch */ color: oklch(46.8% 0.168 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6daa',
    500: '#8a2b87',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b87;
$custom-light: #af6daa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b87",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 301.895,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.46815,
    "c": 0.16831,
    "h": 329.2
  },
  "luminance": 0.0888
}

Semantic roles & 50–950 ramp

primary
#8A2B87
secondary
#5DB460
accent
#DC504C
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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