#8A2A87#8A2A87

#8A2A87 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.7% C 0.170 H 329.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8A2A87
RGBrgb(138, 42, 135)
HSLhsl(302, 53%, 35%)
HSVhsv(302, 70%, 54%)
CMYKcmyk(0%, 69.6%, 2.2%, 45.9%)
CIE-LABlab(35.62, 51.76, -31.47)
CIE-LCHlch(35.62, 60.57, 328.70°)
OKLaboklab(46.71% 0.1457 -0.0869)
OKLCHoklch(46.71% 0.17 329.2)
XYZxyz(15.6822, 8.8096, 23.7914)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2A87 #2A8A2D
analogous
#5D2A8A #8A2A87 #8A2A57
triadic
#8A2A87 #878A2A #2A878A
tetradic
#8A2A87 #8A5D2A #2A8A2D #2A578A
square
#8A2A87 #8A5D2A #2A8A2D #2A578A
split-complementary
#8A2A87 #578A2A #2A8A5D
monochromatic
#2C0D2B #5B1C59 #8A2A87 #B938B5 #CF60CB

Accessibility & contrast

On white

7.60
#8A2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2A87
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2A87#FFFFFF#000000##FFFFFF
##8A2A871.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4C8A
Deuteranopia (green-blind)
#445885
Tritanopia (blue-blind)
#8F3655
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2a87;
/* rgb */ color: rgb(138, 42, 135);
/* oklch */ color: oklch(46.7% 0.170 329.2);
Tailwind
colors: {
  custom: {
    50: '#af6caa',
    500: '#8a2a87',
    950: '#000000',
  },
}
SCSS
$custom: #8a2a87;
$custom-light: #af6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2a87",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 301.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46714,
    "c": 0.16959,
    "h": 329.2
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#8A2A87
secondary
#5BB45E
accent
#DD504B
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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