#8A3887#8A3887

#8A3887 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.3% C 0.150 H 329.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#8A3887
RGBrgb(138, 56, 135)
HSLhsl(302, 42%, 38%)
HSVhsv(302, 59%, 54%)
CMYKcmyk(0%, 59.4%, 2.2%, 45.9%)
CIE-LABlab(37.81, 45.67, -28.02)
CIE-LCHlch(37.81, 53.58, 328.48°)
OKLaboklab(48.31% 0.1283 -0.077)
OKLCHoklch(48.31% 0.15 329)
XYZxyz(16.2684, 9.9819, 23.9868)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3887 #388A3B
analogous
#64388A #8A3887 #8A385E
triadic
#8A3887 #878A38 #38878A
tetradic
#8A3887 #8A6438 #388A3B #385E8A
square
#8A3887 #8A6438 #388A3B #385E8A
split-complementary
#8A3887 #5E8A38 #388A64
monochromatic
#331532 #5E265C #8A3887 #B54AB2 #C775C4

Accessibility & contrast

On white

7.01
#8A3887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A3887 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3887
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3887#FFFFFF#000000##FFFFFF
##8A38871.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315289
Deuteranopia (green-blind)
#4C5D85
Tritanopia (blue-blind)
#8F415A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3887;
/* rgb */ color: rgb(138, 56, 135);
/* oklch */ color: oklch(48.3% 0.150 329.0);
Tailwind
colors: {
  custom: {
    50: '#af74aa',
    500: '#8a3887',
    950: '#000000',
  },
}
SCSS
$custom: #8a3887;
$custom-light: #af74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3887",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 135
  },
  "hsl": {
    "h": 302.195,
    "s": 42.268,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48307,
    "c": 0.14966,
    "h": 329
  },
  "luminance": 0.09981
}

Semantic roles & 50–950 ramp

primary
#8A3887
secondary
#6EB070
accent
#D25A56
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A3887

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

Preview Lab → · Contrast checker → · Palette generator →

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