#8A318C#8A318C

#8A318C is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.7% C 0.164 H 326.9°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#8A318C
RGBrgb(138, 49, 140)
HSLhsl(299, 48%, 37%)
HSVhsv(299, 65%, 55%)
CMYKcmyk(1.4%, 65%, 0%, 45.1%)
CIE-LABlab(36.92, 49.77, -32.49)
CIE-LCHlch(36.92, 59.43, 326.86°)
OKLaboklab(47.75% 0.1378 -0.0899)
OKLCHoklch(47.75% 0.164 326.9)
XYZxyz(16.3129, 9.4944, 25.7792)
Luminance0.0949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A318C #338C31
analogous
#5C318C #8A318C #8C3161
triadic
#8A318C #8C8A31 #318C8A
tetradic
#8A318C #8C5C31 #338C31 #31618C
square
#8A318C #8C5C31 #338C31 #31618C
split-complementary
#8A318C #618C31 #318C5C
monochromatic
#311131 #5D215F #8A318C #B741B9 #C96CCC

Accessibility & contrast

On white

7.24
#8A318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A318C
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A318C#FFFFFF#000000##FFFFFF
##8A318C1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24508F
Deuteranopia (green-blind)
#455B8A
Tritanopia (blue-blind)
#8E3D5A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a318c;
/* rgb */ color: rgb(138, 49, 140);
/* oklch */ color: oklch(47.7% 0.164 326.9);
Tailwind
colors: {
  custom: {
    50: '#af70ae',
    500: '#8a318c',
    950: '#000000',
  },
}
SCSS
$custom: #8a318c;
$custom-light: #af70ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a318c",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 298.681,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47745,
    "c": 0.16448,
    "h": 326.9
  },
  "luminance": 0.09493
}

Semantic roles & 50–950 ramp

primary
#8A318C
secondary
#67B366
accent
#D85053
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A318C

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

Preview Lab → · Contrast checker → · Palette generator →

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