#8A337F#8A337F

#8A337F is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.3% C 0.150 H 333.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#8A337F
RGBrgb(138, 51, 127)
HSLhsl(308, 46%, 37%)
HSVhsv(308, 63%, 54%)
CMYKcmyk(0%, 63%, 8%, 45.9%)
CIE-LABlab(36.56, 46.58, -25.03)
CIE-LCHlch(36.56, 52.88, 331.75°)
OKLaboklab(47.27% 0.134 -0.0684)
OKLCHoklch(47.27% 0.15 333)
XYZxyz(15.4959, 9.3044, 21.0543)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A337F #338A3E
analogous
#6A338A #8A337F #8A3354
triadic
#8A337F #7F8A33 #337F8A
tetradic
#8A337F #8A6A33 #338A3E #33548A
square
#8A337F #8A6A33 #338A3E #33548A
split-complementary
#8A337F #548A33 #338A6A
monochromatic
#31122D #5D2256 #8A337F #B744A8 #C96EBE

Accessibility & contrast

On white

7.34
#8A337F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A337F
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A337F#FFFFFF#000000##FFFFFF
##8A337F1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304E81
Deuteranopia (green-blind)
#4D5B7D
Tritanopia (blue-blind)
#903A54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a337f;
/* rgb */ color: rgb(138, 51, 127);
/* oklch */ color: oklch(47.3% 0.150 333.0);
Tailwind
colors: {
  custom: {
    50: '#af71a4',
    500: '#8a337f',
    950: '#000000',
  },
}
SCSS
$custom: #8a337f;
$custom-light: #af71a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a337f",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 127
  },
  "hsl": {
    "h": 307.586,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47267,
    "c": 0.15043,
    "h": 333
  },
  "luminance": 0.09303
}

Semantic roles & 50–950 ramp

primary
#8A337F
secondary
#67B171
accent
#D66352
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A337F

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

Preview Lab → · Contrast checker → · Palette generator →

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