#8A337D#8A337D

#8A337D is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.2% C 0.149 H 334.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#8A337D
RGBrgb(138, 51, 125)
HSLhsl(309, 46%, 37%)
HSVhsv(309, 63%, 54%)
CMYKcmyk(0%, 63%, 9.4%, 45.9%)
CIE-LABlab(36.47, 46.24, -23.94)
CIE-LCHlch(36.47, 52.07, 332.63°)
OKLaboklab(47.16% 0.1337 -0.0653)
OKLCHoklch(47.16% 0.149 334)
XYZxyz(15.3668, 9.2528, 20.3747)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A337D #338A40
analogous
#6C338A #8A337D #8A3351
triadic
#8A337D #7D8A33 #337D8A
tetradic
#8A337D #8A6C33 #338A40 #33518A
square
#8A337D #8A6C33 #338A40 #33518A
split-complementary
#8A337D #518A33 #338A6C
monochromatic
#31122C #5D2255 #8A337D #B744A5 #C96EBC

Accessibility & contrast

On white

7.37
#8A337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A337D
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A337D#FFFFFF#000000##FFFFFF
##8A337D1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324E7F
Deuteranopia (green-blind)
#4D5A7B
Tritanopia (blue-blind)
#903953
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a337d;
/* rgb */ color: rgb(138, 51, 125);
/* oklch */ color: oklch(47.2% 0.149 334.0);
Tailwind
colors: {
  custom: {
    50: '#af71a3',
    500: '#8a337d',
    950: '#000000',
  },
}
SCSS
$custom: #8a337d;
$custom-light: #af71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a337d",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 308.966,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47164,
    "c": 0.14877,
    "h": 334
  },
  "luminance": 0.09252
}

Semantic roles & 50–950 ramp

primary
#8A337D
secondary
#67B173
accent
#D66652
background
#FBF7FA
surface
#F6EDF3
border
#D0C8CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A337D

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

Preview Lab → · Contrast checker → · Palette generator →

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