#8A418D#8A418D

#8A418D is a mid, vivid purple. Relative luminance 0.111; OKLCH L 49.8% C 0.141 H 325.9°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A418D
RGBrgb(138, 65, 141)
HSLhsl(298, 37%, 40%)
HSVhsv(298, 54%, 55%)
CMYKcmyk(2.1%, 53.9%, 0%, 44.7%)
CIE-LABlab(39.76, 42.35, -28.62)
CIE-LCHlch(39.76, 51.11, 325.94°)
OKLaboklab(49.84% 0.1166 -0.0788)
OKLCHoklch(49.84% 0.141 325.9)
XYZxyz(17.1789, 11.1079, 26.4333)
Luminance0.1111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A418D #448D41
analogous
#64418D #8A418D #8D416A
triadic
#8A418D #8D8A41 #418D8A
tetradic
#8A418D #8D6441 #448D41 #416A8D
square
#8A418D #8D6441 #448D41 #416A8D
split-complementary
#8A418D #6A8D41 #418D64
monochromatic
#381A39 #612E63 #8A418D #AF59B2 #C383C6

Accessibility & contrast

On white

6.52
#8A418D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A418D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A418D
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A418D#FFFFFF#000000##FFFFFF
##8A418D1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38588F
Deuteranopia (green-blind)
#4F618B
Tritanopia (blue-blind)
#8D4A61
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a418d;
/* rgb */ color: rgb(138, 65, 141);
/* oklch */ color: oklch(49.8% 0.141 325.9);
Tailwind
colors: {
  custom: {
    50: '#ae79ae',
    500: '#8a418d',
    950: '#000000',
  },
}
SCSS
$custom: #8a418d;
$custom-light: #ae79ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a418d",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 297.632,
    "s": 36.893,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49837,
    "c": 0.14071,
    "h": 325.9
  },
  "luminance": 0.11107
}

Semantic roles & 50–950 ramp

primary
#8A418D
secondary
#7CB079
accent
#CD5B5F
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A418D

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

Preview Lab → · Contrast checker → · Palette generator →

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