#8A3A7E#8A3A7E

#8A3A7E is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.1% C 0.139 H 333.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#8A3A7E
RGBrgb(138, 58, 126)
HSLhsl(309, 41%, 38%)
HSVhsv(309, 58%, 54%)
CMYKcmyk(0%, 58%, 8.7%, 45.9%)
CIE-LABlab(37.73, 43.10, -22.59)
CIE-LCHlch(37.73, 48.66, 332.34°)
OKLaboklab(48.11% 0.1242 -0.0615)
OKLCHoklch(48.11% 0.139 333.7)
XYZxyz(15.7602, 9.9369, 20.8225)
Luminance0.0994 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3A7E #3A8A46
analogous
#6E3A8A #8A3A7E #8A3A56
triadic
#8A3A7E #7E8A3A #3A7E8A
tetradic
#8A3A7E #8A6E3A #3A8A46 #3A568A
square
#8A3A7E #8A6E3A #3A8A46 #3A568A
split-complementary
#8A3A7E #568A3A #3A8A6E
monochromatic
#34162F #5F2857 #8A3A7E #B44DA5 #C678BB

Accessibility & contrast

On white

7.03
#8A3A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A3A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3A7E
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3A7E#FFFFFF#000000##FFFFFF
##8A3A7E1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395180
Deuteranopia (green-blind)
#515D7C
Tritanopia (blue-blind)
#903F56
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3a7e;
/* rgb */ color: rgb(138, 58, 126);
/* oklch */ color: oklch(48.1% 0.139 333.7);
Tailwind
colors: {
  custom: {
    50: '#ae75a3',
    500: '#8a3a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a3a7e;
$custom-light: #ae75a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3a7e",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 126
  },
  "hsl": {
    "h": 309,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48105,
    "c": 0.1386,
    "h": 333.7
  },
  "luminance": 0.09936
}

Semantic roles & 50–950 ramp

primary
#8A3A7E
secondary
#70B07A
accent
#D16957
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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