#8A4186#8A4186

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

Color values

HEX#8A4186
RGBrgb(138, 65, 134)
HSLhsl(303, 36%, 40%)
HSVhsv(303, 53%, 54%)
CMYKcmyk(0%, 52.9%, 2.9%, 45.9%)
CIE-LABlab(39.42, 41.02, -24.88)
CIE-LCHlch(39.42, 47.97, 328.76°)
OKLaboklab(49.48% 0.1155 -0.0681)
OKLCHoklch(49.48% 0.134 329.5)
XYZxyz(16.6744, 10.9061, 23.7765)
Luminance0.1090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4186 #418A45
analogous
#6A418A #8A4186 #8A4161
triadic
#8A4186 #868A41 #41868A
tetradic
#8A4186 #8A6A41 #418A45 #41618A
square
#8A4186 #8A6A41 #418A45 #41618A
split-complementary
#8A4186 #618A41 #418A6A
monochromatic
#371A35 #602D5E #8A4186 #B058AB #C482C0

Accessibility & contrast

On white

6.60
#8A4186 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A4186 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4186
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4186#FFFFFF#000000##FFFFFF
##8A41861.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5788
Deuteranopia (green-blind)
#526084
Tritanopia (blue-blind)
#8E485D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a4186;
/* rgb */ color: rgb(138, 65, 134);
/* oklch */ color: oklch(49.5% 0.134 329.5);
Tailwind
colors: {
  custom: {
    50: '#ae79a9',
    500: '#8a4186',
    950: '#000000',
  },
}
SCSS
$custom: #8a4186;
$custom-light: #ae79a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4186",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 303.288,
    "s": 35.961,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49476,
    "c": 0.13405,
    "h": 329.5
  },
  "luminance": 0.10905
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A4186

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

Preview Lab → · Contrast checker → · Palette generator →

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