#8A3F87#8A3F87

#8A3F87 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.2% C 0.138 H 329.0°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#8A3F87
RGBrgb(138, 63, 135)
HSLhsl(302, 37%, 39%)
HSVhsv(302, 54%, 54%)
CMYKcmyk(0%, 54.3%, 2.2%, 45.9%)
CIE-LABlab(39.09, 42.23, -26.02)
CIE-LCHlch(39.09, 49.60, 328.36°)
OKLaboklab(49.24% 0.1185 -0.0713)
OKLCHoklch(49.24% 0.138 329)
XYZxyz(16.6317, 10.7086, 24.1079)
Luminance0.1071 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F87 #3F8A42
analogous
#683F8A #8A3F87 #8A3F62
triadic
#8A3F87 #878A3F #3F878A
tetradic
#8A3F87 #8A683F #3F8A42 #3F628A
square
#8A3F87 #8A683F #3F8A42 #3F628A
split-complementary
#8A3F87 #628A3F #3F8A68
monochromatic
#361935 #602C5E #8A3F87 #B155AE #C57FC2

Accessibility & contrast

On white

6.68
#8A3F87 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A3F87 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F87
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F87#FFFFFF#000000##FFFFFF
##8A3F871.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395689
Deuteranopia (green-blind)
#506085
Tritanopia (blue-blind)
#8E465D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a3f87;
/* rgb */ color: rgb(138, 63, 135);
/* oklch */ color: oklch(49.2% 0.138 329.0);
Tailwind
colors: {
  custom: {
    50: '#ae78aa',
    500: '#8a3f87',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f87;
$custom-light: #ae78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f87",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 302.4,
    "s": 37.313,
    "l": 39.412
  },
  "oklch": {
    "l": 0.49243,
    "c": 0.13835,
    "h": 329
  },
  "luminance": 0.10708
}

Semantic roles & 50–950 ramp

primary
#8A3F87
secondary
#76AF78
accent
#CD5F5B
background
#FAF7FA
surface
#F5EDF4
border
#CFC8CE
text
#110910
muted
#807B7F

Preview Lab

Preview with #8A3F87

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

Preview Lab → · Contrast checker → · Palette generator →

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