#8A3F8F#8A3F8F

#8A3F8F is a mid, vivid purple. Relative luminance 0.109; OKLCH L 49.7% C 0.146 H 325.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#8A3F8F
RGBrgb(138, 63, 143)
HSLhsl(296, 39%, 40%)
HSVhsv(296, 56%, 56%)
CMYKcmyk(3.5%, 55.9%, 0%, 43.9%)
CIE-LABlab(39.48, 43.75, -30.28)
CIE-LCHlch(39.48, 53.21, 325.31°)
OKLaboklab(49.67% 0.1196 -0.0836)
OKLCHoklch(49.67% 0.146 325.1)
XYZxyz(17.2163, 10.9424, 27.1865)
Luminance0.1094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F8F #448F3F
analogous
#623F8F #8A3F8F #8F3F6C
triadic
#8A3F8F #8F8A3F #3F8F8A
tetradic
#8A3F8F #8F623F #448F3F #3F6C8F
square
#8A3F8F #8F623F #448F3F #3F6C8F
split-complementary
#8A3F8F #6C8F3F #3F8F62
monochromatic
#381A3A #612C65 #8A3F8F #AF56B5 #C381C7

Accessibility & contrast

On white

6.59
#8A3F8F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8A3F8F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F8F
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F8F#FFFFFF#000000##FFFFFF
##8A3F8F1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345792
Deuteranopia (green-blind)
#4D608D
Tritanopia (blue-blind)
#8D4961
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a3f8f;
/* rgb */ color: rgb(138, 63, 143);
/* oklch */ color: oklch(49.7% 0.146 325.1);
Tailwind
colors: {
  custom: {
    50: '#ae78b0',
    500: '#8a3f8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f8f;
$custom-light: #ae78b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f8f",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 296.25,
    "s": 38.835,
    "l": 40.392
  },
  "oklch": {
    "l": 0.49665,
    "c": 0.14595,
    "h": 325.1
  },
  "luminance": 0.10941
}

Semantic roles & 50–950 ramp

primary
#8A3F8F
secondary
#7CB278
accent
#CF5960
background
#FAF7FA
surface
#F5EDF5
border
#CFC8CF
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A3F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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