#8A318E#8A318E

#8A318E is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.9% C 0.166 H 326.0°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8A318E
RGBrgb(138, 49, 142)
HSLhsl(297, 49%, 37%)
HSVhsv(297, 65%, 56%)
CMYKcmyk(2.8%, 65.5%, 0%, 44.3%)
CIE-LABlab(37.03, 50.13, -33.54)
CIE-LCHlch(37.03, 60.32, 326.22°)
OKLaboklab(47.86% 0.1379 -0.0929)
OKLCHoklch(47.86% 0.166 326)
XYZxyz(16.4617, 9.5539, 26.5630)
Luminance0.0955 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A318E #358E31
analogous
#5B318E #8A318E #8E3164
triadic
#8A318E #8E8A31 #318E8A
tetradic
#8A318E #8E5B31 #358E31 #31648E
square
#8A318E #8E5B31 #358E31 #31648E
split-complementary
#8A318E #648E31 #318E5B
monochromatic
#321233 #5E2161 #8A318E #B641BB #C86DCD

Accessibility & contrast

On white

7.22
#8A318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A318E
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A318E#FFFFFF#000000##FFFFFF
##8A318E1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225091
Deuteranopia (green-blind)
#445B8C
Tritanopia (blue-blind)
#8D3E5B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a318e;
/* rgb */ color: rgb(138, 49, 142);
/* oklch */ color: oklch(47.9% 0.166 326.0);
Tailwind
colors: {
  custom: {
    50: '#af70af',
    500: '#8a318e',
    950: '#000000',
  },
}
SCSS
$custom: #8a318e;
$custom-light: #af70af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a318e",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 297.419,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4786,
    "c": 0.16624,
    "h": 326
  },
  "luminance": 0.09553
}

Semantic roles & 50–950 ramp

primary
#8A318E
secondary
#6AB467
accent
#D85055
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A318E

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

Preview Lab → · Contrast checker → · Palette generator →

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