#8A2D8B#8A2D8B

#8A2D8B is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.169 H 327.4°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8A2D8B
RGBrgb(138, 45, 139)
HSLhsl(299, 51%, 36%)
HSVhsv(299, 68%, 55%)
CMYKcmyk(0.7%, 67.6%, 0%, 45.5%)
CIE-LABlab(36.26, 51.27, -32.91)
CIE-LCHlch(36.26, 60.92, 327.30°)
OKLaboklab(47.25% 0.1424 -0.0911)
OKLCHoklch(47.25% 0.169 327.4)
XYZxyz(16.0796, 9.1452, 25.3394)
Luminance0.0914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D8B #2E8B2D
analogous
#5B2D8B #8A2D8B #8B2D5D
triadic
#8A2D8B #8B8A2D #2D8B8A
tetradic
#8A2D8B #8B5B2D #2E8B2D #2D5D8B
square
#8A2D8B #8B5B2D #2E8B2D #2D5D8B
split-complementary
#8A2D8B #5D8B2D #2D8B5B
monochromatic
#2E0F2F #5C1E5D #8A2D8B #B83CB9 #CC65CD

Accessibility & contrast

On white

7.42
#8A2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D8B
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D8B#FFFFFF#000000##FFFFFF
##8A2D8B1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4E8E
Deuteranopia (green-blind)
#445A89
Tritanopia (blue-blind)
#8E3A58
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2d8b;
/* rgb */ color: rgb(138, 45, 139);
/* oklch */ color: oklch(47.3% 0.169 327.4);
Tailwind
colors: {
  custom: {
    50: '#af6ead',
    500: '#8a2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d8b;
$custom-light: #af6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d8b",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 299.362,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47252,
    "c": 0.16906,
    "h": 327.4
  },
  "luminance": 0.09144
}

Semantic roles & 50–950 ramp

primary
#8A2D8B
secondary
#61B460
accent
#DB4D4F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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