#8A419D#8A419D

#8A419D is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.7% C 0.157 H 318.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A419D
RGBrgb(138, 65, 157)
HSLhsl(288, 41%, 44%)
HSVhsv(288, 59%, 62%)
CMYKcmyk(12.1%, 58.6%, 0%, 38.4%)
CIE-LABlab(40.60, 45.56, -36.97)
CIE-LCHlch(40.60, 58.67, 320.94°)
OKLaboklab(50.73% 0.1181 -0.103)
OKLCHoklch(50.73% 0.157 318.9)
XYZxyz(18.4565, 11.6189, 33.1622)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A419D #549D41
analogous
#5C419D #8A419D #9D4182
triadic
#8A419D #9D8A41 #419D8A
tetradic
#8A419D #9D5C41 #549D41 #41829D
square
#8A419D #9D5C41 #549D41 #41829D
split-complementary
#8A419D #829D41 #419D5C
monochromatic
#3E1D46 #642F72 #8A419D #A95FBD #C08ACF

Accessibility & contrast

On white

6.32
#8A419D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A419D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A419D
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A419D#FFFFFF#000000##FFFFFF
##8A419D1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA0
Deuteranopia (green-blind)
#46629B
Tritanopia (blue-blind)
#8A4F69
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a419d;
/* rgb */ color: rgb(138, 65, 157);
/* oklch */ color: oklch(50.7% 0.157 318.9);
Tailwind
colors: {
  custom: {
    50: '#af79ba',
    500: '#8a419d',
    950: '#000000',
  },
}
SCSS
$custom: #8a419d;
$custom-light: #af79ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a419d",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 287.609,
    "s": 41.441,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50729,
    "c": 0.15673,
    "h": 318.9
  },
  "luminance": 0.11618
}

Semantic roles & 50–950 ramp

primary
#8A419D
secondary
#8CB980
accent
#D15770
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A419D

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

Preview Lab → · Contrast checker → · Palette generator →

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