#8A419E#8A419E

#8A419E is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.8% C 0.158 H 318.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A419E
RGBrgb(138, 65, 158)
HSLhsl(287, 42%, 44%)
HSVhsv(287, 59%, 62%)
CMYKcmyk(12.7%, 58.9%, 0%, 38%)
CIE-LABlab(40.66, 45.76, -37.48)
CIE-LCHlch(40.66, 59.15, 320.68°)
OKLaboklab(50.79% 0.1182 -0.1045)
OKLCHoklch(50.79% 0.158 318.5)
XYZxyz(18.5423, 11.6532, 33.6137)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A419E #559E41
analogous
#5B419E #8A419E #9E4183
triadic
#8A419E #9E8A41 #419E8A
tetradic
#8A419E #9E5B41 #559E41 #41839E
square
#8A419E #9E5B41 #559E41 #41839E
split-complementary
#8A419E #839E41 #419E5B
monochromatic
#3E1D47 #642F73 #8A419E #A95FBD #C08ACF

Accessibility & contrast

On white

6.31
#8A419E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A419E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A419E
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A419E#FFFFFF#000000##FFFFFF
##8A419E1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5BA1
Deuteranopia (green-blind)
#46629C
Tritanopia (blue-blind)
#8A5069
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a419e;
/* rgb */ color: rgb(138, 65, 158);
/* oklch */ color: oklch(50.8% 0.158 318.5);
Tailwind
colors: {
  custom: {
    50: '#af7abb',
    500: '#8a419e',
    950: '#000000',
  },
}
SCSS
$custom: #8a419e;
$custom-light: #af7abb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a419e",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 158
  },
  "hsl": {
    "h": 287.097,
    "s": 41.704,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50787,
    "c": 0.15775,
    "h": 318.5
  },
  "luminance": 0.11652
}

Semantic roles & 50–950 ramp

primary
#8A419E
secondary
#8DBA81
accent
#D25671
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A419E

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

Preview Lab → · Contrast checker → · Palette generator →

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