#8A2E8B#8A2E8B

#8A2E8B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.168 H 327.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A2E8B
RGBrgb(138, 46, 139)
HSLhsl(299, 50%, 36%)
HSVhsv(299, 67%, 55%)
CMYKcmyk(0.7%, 66.9%, 0%, 45.5%)
CIE-LABlab(36.41, 50.85, -32.68)
CIE-LCHlch(36.41, 60.45, 327.27°)
OKLaboklab(47.36% 0.1413 -0.0904)
OKLCHoklch(47.36% 0.168 327.4)
XYZxyz(16.1182, 9.2224, 25.3522)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E8B #2F8B2E
analogous
#5C2E8B #8A2E8B #8B2E5E
triadic
#8A2E8B #8B8A2E #2E8B8A
tetradic
#8A2E8B #8B5C2E #2F8B2E #2E5E8B
square
#8A2E8B #8B5C2E #2F8B2E #2E5E8B
split-complementary
#8A2E8B #5E8B2E #2E8B5C
monochromatic
#2F102F #5C1F5D #8A2E8B #B83DB9 #CC67CD

Accessibility & contrast

On white

7.38
#8A2E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A2E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E8B
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E8B#FFFFFF#000000##FFFFFF
##8A2E8B1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204E8E
Deuteranopia (green-blind)
#445A89
Tritanopia (blue-blind)
#8E3B58
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2e8b;
/* rgb */ color: rgb(138, 46, 139);
/* oklch */ color: oklch(47.4% 0.168 327.4);
Tailwind
colors: {
  custom: {
    50: '#af6ead',
    500: '#8a2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e8b;
$custom-light: #af6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e8b",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 299.355,
    "s": 50.27,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47358,
    "c": 0.16773,
    "h": 327.4
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#8A2E8B
secondary
#62B361
accent
#DA4E50
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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