#8A418E#8A418E

#8A418E is a mid, vivid purple. Relative luminance 0.111; OKLCH L 49.9% C 0.142 H 325.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8A418E
RGBrgb(138, 65, 142)
HSLhsl(297, 37%, 41%)
HSVhsv(297, 54%, 56%)
CMYKcmyk(2.8%, 54.2%, 0%, 44.3%)
CIE-LABlab(39.81, 42.54, -29.15)
CIE-LCHlch(39.81, 51.57, 325.58°)
OKLaboklab(49.89% 0.1167 -0.0804)
OKLCHoklch(49.89% 0.142 325.4)
XYZxyz(17.2536, 11.1378, 26.8269)
Luminance0.1114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A418E #458E41
analogous
#63418E #8A418E #8E416B
triadic
#8A418E #8E8A41 #418E8A
tetradic
#8A418E #8E6341 #458E41 #416B8E
square
#8A418E #8E6341 #458E41 #416B8E
split-complementary
#8A418E #6B8E41 #418E63
monochromatic
#381B3A #612E64 #8A418E #AE59B3 #C383C6

Accessibility & contrast

On white

6.51
#8A418E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A418E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A418E
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A418E#FFFFFF#000000##FFFFFF
##8A418E1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385891
Deuteranopia (green-blind)
#4F618C
Tritanopia (blue-blind)
#8D4A61
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a418e;
/* rgb */ color: rgb(138, 65, 142);
/* oklch */ color: oklch(49.9% 0.142 325.4);
Tailwind
colors: {
  custom: {
    50: '#ae79af',
    500: '#8a418e',
    950: '#000000',
  },
}
SCSS
$custom: #8a418e;
$custom-light: #ae79af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a418e",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 296.883,
    "s": 37.198,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4989,
    "c": 0.14169,
    "h": 325.4
  },
  "luminance": 0.11137
}

Semantic roles & 50–950 ramp

primary
#8A418E
secondary
#7DB17A
accent
#CD5B61
background
#FAF7FA
surface
#F5EEF4
border
#CFC9CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A418E

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

Preview Lab → · Contrast checker → · Palette generator →

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