#8A2E8D#8A2E8D

#8A2E8D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.5% C 0.169 H 326.5°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8A2E8D
RGBrgb(138, 46, 141)
HSLhsl(298, 51%, 37%)
HSVhsv(298, 67%, 55%)
CMYKcmyk(2.1%, 67.4%, 0%, 44.7%)
CIE-LABlab(36.52, 51.21, -33.73)
CIE-LCHlch(36.52, 61.33, 326.63°)
OKLaboklab(47.48% 0.1414 -0.0934)
OKLCHoklch(47.48% 0.169 326.5)
XYZxyz(16.2656, 9.2814, 26.1289)
Luminance0.0928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E8D #318D2E
analogous
#5B2E8D #8A2E8D #8D2E61
triadic
#8A2E8D #8D8A2E #2E8D8A
tetradic
#8A2E8D #8D5B2E #318D2E #2E618D
square
#8A2E8D #8D5B2E #318D2E #2E618D
split-complementary
#8A2E8D #618D2E #2E8D5B
monochromatic
#301031 #5D1F5F #8A2E8D #B73DBB #CA68CE

Accessibility & contrast

On white

7.35
#8A2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8A2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E8D
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E8D#FFFFFF#000000##FFFFFF
##8A2E8D1.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4E90
Deuteranopia (green-blind)
#435A8B
Tritanopia (blue-blind)
#8E3C59
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2e8d;
/* rgb */ color: rgb(138, 46, 141);
/* oklch */ color: oklch(47.5% 0.169 326.5);
Tailwind
colors: {
  custom: {
    50: '#af6faf',
    500: '#8a2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e8d;
$custom-light: #af6faf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e8d",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 298.105,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47475,
    "c": 0.16946,
    "h": 326.5
  },
  "luminance": 0.0928
}

Semantic roles & 50–950 ramp

primary
#8A2E8D
secondary
#65B562
accent
#DA4E52
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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