#8A318D#8A318D

#8A318D is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.8% C 0.165 H 326.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8A318D
RGBrgb(138, 49, 141)
HSLhsl(298, 48%, 37%)
HSVhsv(298, 65%, 55%)
CMYKcmyk(2.1%, 65.2%, 0%, 44.7%)
CIE-LABlab(36.97, 49.95, -33.01)
CIE-LCHlch(36.97, 59.87, 326.54°)
OKLaboklab(47.8% 0.1378 -0.0914)
OKLCHoklch(47.8% 0.165 326.4)
XYZxyz(16.3870, 9.5240, 26.1693)
Luminance0.0952 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A318D #348D31
analogous
#5C318D #8A318D #8D3162
triadic
#8A318D #8D8A31 #318D8A
tetradic
#8A318D #8D5C31 #348D31 #31628D
square
#8A318D #8D5C31 #348D31 #31628D
split-complementary
#8A318D #628D31 #318D5C
monochromatic
#311132 #5E2160 #8A318D #B641BA #C96CCC

Accessibility & contrast

On white

7.23
#8A318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A318D
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A318D#FFFFFF#000000##FFFFFF
##8A318D1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235090
Deuteranopia (green-blind)
#455B8B
Tritanopia (blue-blind)
#8E3E5A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a318d;
/* rgb */ color: rgb(138, 49, 141);
/* oklch */ color: oklch(47.8% 0.165 326.4);
Tailwind
colors: {
  custom: {
    50: '#af70af',
    500: '#8a318d',
    950: '#000000',
  },
}
SCSS
$custom: #8a318d;
$custom-light: #af70af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a318d",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 298.043,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47802,
    "c": 0.16536,
    "h": 326.4
  },
  "luminance": 0.09523
}

Semantic roles & 50–950 ramp

primary
#8A318D
secondary
#69B466
accent
#D85054
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A318D

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

Preview Lab → · Contrast checker → · Palette generator →

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