#8A337E#8A337E

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

Color values

HEX#8A337E
RGBrgb(138, 51, 126)
HSLhsl(308, 46%, 37%)
HSVhsv(308, 63%, 54%)
CMYKcmyk(0%, 63%, 8.7%, 45.9%)
CIE-LABlab(36.52, 46.41, -24.48)
CIE-LCHlch(36.52, 52.47, 332.19°)
OKLaboklab(47.22% 0.1338 -0.0668)
OKLCHoklch(47.22% 0.15 333.5)
XYZxyz(15.4310, 9.2785, 20.7128)
Luminance0.0928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A337E #338A3F
analogous
#6B338A #8A337E #8A3353
triadic
#8A337E #7E8A33 #337E8A
tetradic
#8A337E #8A6B33 #338A3F #33538A
square
#8A337E #8A6B33 #338A3F #33538A
split-complementary
#8A337E #538A33 #338A6B
monochromatic
#31122C #5D2255 #8A337E #B744A7 #C96EBD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A337E#FFFFFF#000000##FFFFFF
##8A337E1.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)
#314E80
Deuteranopia (green-blind)
#4D5A7C
Tritanopia (blue-blind)
#903A53
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a337e;
/* rgb */ color: rgb(138, 51, 126);
/* oklch */ color: oklch(47.2% 0.150 333.5);
Tailwind
colors: {
  custom: {
    50: '#af71a3',
    500: '#8a337e',
    950: '#000000',
  },
}
SCSS
$custom: #8a337e;
$custom-light: #af71a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a337e",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 308.276,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47215,
    "c": 0.1496,
    "h": 333.5
  },
  "luminance": 0.09277
}

Semantic roles & 50–950 ramp

primary
#8A337E
secondary
#67B172
accent
#D66452
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A337E

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

Preview Lab → · Contrast checker → · Palette generator →

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