#8A3E9C#8A3E9C

#8A3E9C is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.3% C 0.160 H 319.6°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A3E9C
RGBrgb(138, 62, 156)
HSLhsl(289, 43%, 43%)
HSVhsv(289, 60%, 61%)
CMYKcmyk(11.5%, 60.3%, 0%, 38.8%)
CIE-LABlab(40.00, 46.84, -37.33)
CIE-LCHlch(40.00, 59.90, 321.45°)
OKLaboklab(50.27% 0.1221 -0.104)
OKLCHoklch(50.27% 0.16 319.6)
XYZxyz(18.2038, 11.2496, 32.6586)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3E9C #509C3E
analogous
#5B3E9C #8A3E9C #9C3E7F
triadic
#8A3E9C #9C8A3E #3E9C8A
tetradic
#8A3E9C #9C5B3E #509C3E #3E7F9C
square
#8A3E9C #9C5B3E #509C3E #3E7F9C
split-complementary
#8A3E9C #7F9C3E #3E9C5B
monochromatic
#3D1B44 #632D70 #8A3E9C #AA5ABD #C186CF

Accessibility & contrast

On white

6.46
#8A3E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A3E9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3E9C
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3E9C#FFFFFF#000000##FFFFFF
##8A3E9C1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28599F
Deuteranopia (green-blind)
#45619A
Tritanopia (blue-blind)
#8A4D67
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3e9c;
/* rgb */ color: rgb(138, 62, 156);
/* oklch */ color: oklch(50.3% 0.160 319.6);
Tailwind
colors: {
  custom: {
    50: '#af78b9',
    500: '#8a3e9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a3e9c;
$custom-light: #af78b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3e9c",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 156
  },
  "hsl": {
    "h": 288.511,
    "s": 43.119,
    "l": 42.745
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.16037,
    "h": 319.6
  },
  "luminance": 0.11249
}

Semantic roles & 50–950 ramp

primary
#8A3E9C
secondary
#88B97D
accent
#D3556D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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