#8A3F8D#8A3F8D

#8A3F8D is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.6% C 0.144 H 326.0°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A3F8D
RGBrgb(138, 63, 141)
HSLhsl(298, 38%, 40%)
HSVhsv(298, 55%, 55%)
CMYKcmyk(2.1%, 55.3%, 0%, 44.7%)
CIE-LABlab(39.38, 43.36, -29.22)
CIE-LCHlch(39.38, 52.29, 326.03°)
OKLaboklab(49.56% 0.1194 -0.0805)
OKLCHoklch(49.56% 0.144 326)
XYZxyz(17.0661, 10.8823, 26.3957)
Luminance0.1088 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F8D #428D3F
analogous
#633F8D #8A3F8D #8D3F69
triadic
#8A3F8D #8D8A3F #3F8D8A
tetradic
#8A3F8D #8D633F #428D3F #3F698D
square
#8A3F8D #8D633F #428D3F #3F698D
split-complementary
#8A3F8D #698D3F #3F8D63
monochromatic
#371938 #612C63 #8A3F8D #B056B3 #C480C6

Accessibility & contrast

On white

6.61
#8A3F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A3F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F8D
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F8D#FFFFFF#000000##FFFFFF
##8A3F8D1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365790
Deuteranopia (green-blind)
#4E608B
Tritanopia (blue-blind)
#8D4860
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3f8d;
/* rgb */ color: rgb(138, 63, 141);
/* oklch */ color: oklch(49.6% 0.144 326.0);
Tailwind
colors: {
  custom: {
    50: '#ae78ae',
    500: '#8a3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f8d;
$custom-light: #ae78ae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f8d",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 297.692,
    "s": 38.235,
    "l": 40
  },
  "oklch": {
    "l": 0.49558,
    "c": 0.14402,
    "h": 326
  },
  "luminance": 0.10881
}

Semantic roles & 50–950 ramp

primary
#8A3F8D
secondary
#79B177
accent
#CE5A5E
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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