#8A3A8D#8A3A8D

#8A3A8D is a mid, vivid purple. Relative luminance 0.104; OKLCH L 48.9% C 0.152 H 326.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A3A8D
RGBrgb(138, 58, 141)
HSLhsl(298, 42%, 39%)
HSVhsv(298, 59%, 55%)
CMYKcmyk(2.1%, 58.9%, 0%, 44.7%)
CIE-LABlab(38.47, 45.83, -30.65)
CIE-LCHlch(38.47, 55.14, 326.22°)
OKLaboklab(48.89% 0.1263 -0.0846)
OKLCHoklch(48.89% 0.152 326.2)
XYZxyz(16.8017, 10.3535, 26.3076)
Luminance0.1035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3A8D #3D8D3A
analogous
#613A8D #8A3A8D #8D3A67
triadic
#8A3A8D #8D8A3A #3A8D8A
tetradic
#8A3A8D #8D613A #3D8D3A #3A678D
square
#8A3A8D #8D613A #3D8D3A #3A678D
split-complementary
#8A3A8D #678D3A #3A8D61
monochromatic
#351636 #602862 #8A3A8D #B24EB6 #C579C8

Accessibility & contrast

On white

6.84
#8A3A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A3A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3A8D
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3A8D#FFFFFF#000000##FFFFFF
##8A3A8D1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5490
Deuteranopia (green-blind)
#4A5E8B
Tritanopia (blue-blind)
#8D455E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3a8d;
/* rgb */ color: rgb(138, 58, 141);
/* oklch */ color: oklch(48.9% 0.152 326.2);
Tailwind
colors: {
  custom: {
    50: '#af75ae',
    500: '#8a3a8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a3a8d;
$custom-light: #af75ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3a8d",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 141
  },
  "hsl": {
    "h": 297.831,
    "s": 41.709,
    "l": 39.02
  },
  "oklch": {
    "l": 0.4889,
    "c": 0.15203,
    "h": 326.2
  },
  "luminance": 0.10352
}

Semantic roles & 50–950 ramp

primary
#8A3A8D
secondary
#74B171
accent
#D2565B
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A3A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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