#8A2D8A#8A2D8A

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

Color values

HEX#8A2D8A
RGBrgb(138, 45, 138)
HSLhsl(300, 51%, 36%)
HSVhsv(300, 67%, 54%)
CMYKcmyk(0%, 67.4%, 0%, 45.9%)
CIE-LABlab(36.21, 51.09, -32.38)
CIE-LCHlch(36.21, 60.49, 327.63°)
OKLaboklab(47.19% 0.1424 -0.0895)
OKLCHoklch(47.19% 0.168 327.8)
XYZxyz(16.0068, 9.1161, 24.9563)
Luminance0.0911 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D8A #2D8A2D
analogous
#5B2D8A #8A2D8A #8A2D5B
triadic
#8A2D8A #8A8A2D #2D8A8A
tetradic
#8A2D8A #8A5B2D #2D8A2D #2D5B8A
square
#8A2D8A #8A5B2D #2D8A2D #2D5B8A
split-complementary
#8A2D8A #5B8A2D #2D8A5B
monochromatic
#2E0F2E #5C1E5C #8A2D8A #B83CB8 #CD65CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2D8A#FFFFFF#000000##FFFFFF
##8A2D8A1.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)
#204D8D
Deuteranopia (green-blind)
#445988
Tritanopia (blue-blind)
#8E3A58
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2d8a;
/* rgb */ color: rgb(138, 45, 138);
/* oklch */ color: oklch(47.2% 0.168 327.8);
Tailwind
colors: {
  custom: {
    50: '#af6eac',
    500: '#8a2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d8a;
$custom-light: #af6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d8a",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.47194,
    "c": 0.16821,
    "h": 327.8
  },
  "luminance": 0.09115
}

Semantic roles & 50–950 ramp

primary
#8A2D8A
secondary
#60B360
accent
#DA4D4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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