#8A2E8A#8A2E8A

#8A2E8A is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.167 H 327.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8A2E8A
RGBrgb(138, 46, 138)
HSLhsl(300, 50%, 36%)
HSVhsv(300, 67%, 54%)
CMYKcmyk(0%, 66.7%, 0%, 45.9%)
CIE-LABlab(36.35, 50.68, -32.15)
CIE-LCHlch(36.35, 60.02, 327.61°)
OKLaboklab(47.3% 0.1412 -0.0889)
OKLCHoklch(47.3% 0.167 327.8)
XYZxyz(16.0455, 9.1933, 24.9692)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E8A #2E8A2E
analogous
#5C2E8A #8A2E8A #8A2E5C
triadic
#8A2E8A #8A8A2E #2E8A8A
tetradic
#8A2E8A #8A5C2E #2E8A2E #2E5C8A
square
#8A2E8A #8A5C2E #2E8A2E #2E5C8A
split-complementary
#8A2E8A #5C8A2E #2E8A5C
monochromatic
#2E0F2E #5C1F5C #8A2E8A #B83DB8 #CC66CC

Accessibility & contrast

On white

7.40
#8A2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2E8A
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E8A#FFFFFF#000000##FFFFFF
##8A2E8A1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214E8D
Deuteranopia (green-blind)
#455A88
Tritanopia (blue-blind)
#8E3A58
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2e8a;
/* rgb */ color: rgb(138, 46, 138);
/* oklch */ color: oklch(47.3% 0.167 327.8);
Tailwind
colors: {
  custom: {
    50: '#af6eac',
    500: '#8a2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e8a;
$custom-light: #af6eac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e8a",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.473,
    "c": 0.16686,
    "h": 327.8
  },
  "luminance": 0.09192
}

Semantic roles & 50–950 ramp

primary
#8A2E8A
secondary
#61B361
accent
#DA4E4E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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