#8A337C#8A337C

#8A337C is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.1% C 0.148 H 334.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A337C
RGBrgb(138, 51, 124)
HSLhsl(310, 46%, 37%)
HSVhsv(310, 63%, 54%)
CMYKcmyk(0%, 63%, 10.1%, 45.9%)
CIE-LABlab(36.42, 46.07, -23.39)
CIE-LCHlch(36.42, 51.67, 333.08°)
OKLaboklab(47.11% 0.1335 -0.0637)
OKLCHoklch(47.11% 0.148 334.5)
XYZxyz(15.3032, 9.2274, 20.0399)
Luminance0.0923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A337C #338A41
analogous
#6D338A #8A337C #8A3351
triadic
#8A337C #7C8A33 #337C8A
tetradic
#8A337C #8A6D33 #338A41 #33518A
square
#8A337C #8A6D33 #338A41 #33518A
split-complementary
#8A337C #518A33 #338A6D
monochromatic
#31122C #5D2254 #8A337C #B744A4 #C96EBB

Accessibility & contrast

On white

7.38
#8A337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A337C
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A337C#FFFFFF#000000##FFFFFF
##8A337C1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#324D7E
Deuteranopia (green-blind)
#4E5A7A
Tritanopia (blue-blind)
#903952
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a337c;
/* rgb */ color: rgb(138, 51, 124);
/* oklch */ color: oklch(47.1% 0.148 334.5);
Tailwind
colors: {
  custom: {
    50: '#af71a2',
    500: '#8a337c',
    950: '#000000',
  },
}
SCSS
$custom: #8a337c;
$custom-light: #af71a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a337c",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 309.655,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47113,
    "c": 0.14796,
    "h": 334.5
  },
  "luminance": 0.09226
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A337C

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

Preview Lab → · Contrast checker → · Palette generator →

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