#8A3183#8A3183

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

Color values

HEX#8A3183
RGBrgb(138, 49, 131)
HSLhsl(305, 48%, 37%)
HSVhsv(305, 64%, 54%)
CMYKcmyk(0%, 64.5%, 5.1%, 45.9%)
CIE-LABlab(36.44, 48.16, -27.70)
CIE-LCHlch(36.44, 55.56, 330.10°)
OKLaboklab(47.24% 0.137 -0.076)
OKLCHoklch(47.24% 0.157 331)
XYZxyz(15.6762, 9.2397, 22.4261)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3183 #318A38
analogous
#65318A #8A3183 #8A3157
triadic
#8A3183 #838A31 #31838A
tetradic
#8A3183 #8A6531 #318A38 #31578A
square
#8A3183 #8A6531 #318A38 #31578A
split-complementary
#8A3183 #578A31 #318A65
monochromatic
#30112D #5D2158 #8A3183 #B741AE #CA6BC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3183#FFFFFF#000000##FFFFFF
##8A31831.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)
#2B4E85
Deuteranopia (green-blind)
#4A5A81
Tritanopia (blue-blind)
#8F3A55
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3183;
/* rgb */ color: rgb(138, 49, 131);
/* oklch */ color: oklch(47.2% 0.157 331.0);
Tailwind
colors: {
  custom: {
    50: '#af70a7',
    500: '#8a3183',
    950: '#000000',
  },
}
SCSS
$custom: #8a3183;
$custom-light: #af70a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3183",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 131
  },
  "hsl": {
    "h": 304.719,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47243,
    "c": 0.15672,
    "h": 331
  },
  "luminance": 0.09239
}

Semantic roles & 50–950 ramp

primary
#8A3183
secondary
#65B26B
accent
#D75B51
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3183

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

Preview Lab → · Contrast checker → · Palette generator →

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