#8A4187#8A4187

#8A4187 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.5% C 0.135 H 328.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A4187
RGBrgb(138, 65, 135)
HSLhsl(302, 36%, 40%)
HSVhsv(302, 53%, 54%)
CMYKcmyk(0%, 52.9%, 2.2%, 45.9%)
CIE-LABlab(39.47, 41.20, -25.42)
CIE-LCHlch(39.47, 48.41, 328.33°)
OKLaboklab(49.53% 0.1156 -0.0696)
OKLCHoklch(49.53% 0.135 328.9)
XYZxyz(16.7445, 10.9341, 24.1455)
Luminance0.1093 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4187 #418A44
analogous
#69418A #8A4187 #8A4162
triadic
#8A4187 #878A41 #41878A
tetradic
#8A4187 #8A6941 #418A44 #41628A
square
#8A4187 #8A6941 #418A44 #41628A
split-complementary
#8A4187 #628A41 #418A69
monochromatic
#371A36 #602D5E #8A4187 #B058AD #C482C1

Accessibility & contrast

On white

6.59
#8A4187 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A4187 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4187
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4187#FFFFFF#000000##FFFFFF
##8A41871.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5789
Deuteranopia (green-blind)
#526085
Tritanopia (blue-blind)
#8E485E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a4187;
/* rgb */ color: rgb(138, 65, 135);
/* oklch */ color: oklch(49.5% 0.135 328.9);
Tailwind
colors: {
  custom: {
    50: '#ae79aa',
    500: '#8a4187',
    950: '#000000',
  },
}
SCSS
$custom: #8a4187;
$custom-light: #ae79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4187",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 135
  },
  "hsl": {
    "h": 302.466,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49526,
    "c": 0.13498,
    "h": 328.9
  },
  "luminance": 0.10933
}

Semantic roles & 50–950 ramp

primary
#8A4187
secondary
#78AE7B
accent
#CC605C
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A4187

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

Preview Lab → · Contrast checker → · Palette generator →

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