#8A3185#8A3185

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

Color values

HEX#8A3185
RGBrgb(138, 49, 133)
HSLhsl(303, 48%, 37%)
HSVhsv(303, 64%, 54%)
CMYKcmyk(0%, 64.5%, 3.6%, 45.9%)
CIE-LABlab(36.55, 48.51, -28.77)
CIE-LCHlch(36.55, 56.40, 329.33°)
OKLaboklab(47.35% 0.1372 -0.0791)
OKLCHoklch(47.35% 0.158 330)
XYZxyz(15.8131, 9.2945, 23.1469)
Luminance0.0929 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3185 #318A36
analogous
#63318A #8A3185 #8A3159
triadic
#8A3185 #858A31 #31858A
tetradic
#8A3185 #8A6331 #318A36 #31598A
square
#8A3185 #8A6331 #318A36 #31598A
split-complementary
#8A3185 #598A31 #318A63
monochromatic
#30112E #5D2159 #8A3185 #B741B1 #CA6BC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3185#FFFFFF#000000##FFFFFF
##8A31851.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)
#2A4E88
Deuteranopia (green-blind)
#495A83
Tritanopia (blue-blind)
#8F3B56
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3185;
/* rgb */ color: rgb(138, 49, 133);
/* oklch */ color: oklch(47.4% 0.158 330.0);
Tailwind
colors: {
  custom: {
    50: '#af70a9',
    500: '#8a3185',
    950: '#000000',
  },
}
SCSS
$custom: #8a3185;
$custom-light: #af70a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3185",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 133
  },
  "hsl": {
    "h": 303.371,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47352,
    "c": 0.15841,
    "h": 330
  },
  "luminance": 0.09293
}

Semantic roles & 50–950 ramp

primary
#8A3185
secondary
#65B269
accent
#D75851
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3185

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

Preview Lab → · Contrast checker → · Palette generator →

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