#8A3DA2#8A3DA2

#8A3DA2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.5% C 0.168 H 317.4°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#8A3DA2
RGBrgb(138, 61, 162)
HSLhsl(286, 45%, 44%)
HSVhsv(286, 62%, 64%)
CMYKcmyk(14.8%, 62.3%, 0%, 36.5%)
CIE-LABlab(40.16, 48.57, -40.67)
CIE-LCHlch(40.16, 63.35, 320.06°)
OKLaboklab(50.5% 0.1235 -0.1137)
OKLCHoklch(50.5% 0.168 317.4)
XYZxyz(18.6706, 11.3501, 35.3827)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DA2 #55A23D
analogous
#573DA2 #8A3DA2 #A23D87
triadic
#8A3DA2 #A28A3D #3DA28A
tetradic
#8A3DA2 #A2573D #55A23D #3D87A2
square
#8A3DA2 #A2573D #55A23D #3D87A2
split-complementary
#8A3DA2 #87A23D #3DA257
monochromatic
#3E1C49 #642C76 #8A3DA2 #A95BC1 #C087D2

Accessibility & contrast

On white

6.42
#8A3DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8A3DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DA2
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DA2#FFFFFF#000000##FFFFFF
##8A3DA21.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#40619F
Tritanopia (blue-blind)
#894E6A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3da2;
/* rgb */ color: rgb(138, 61, 162);
/* oklch */ color: oklch(50.5% 0.168 317.4);
Tailwind
colors: {
  custom: {
    50: '#af77be',
    500: '#8a3da2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3da2;
$custom-light: #af77be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3da2",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 162
  },
  "hsl": {
    "h": 285.743,
    "s": 45.291,
    "l": 43.725
  },
  "oklch": {
    "l": 0.50501,
    "c": 0.16792,
    "h": 317.4
  },
  "luminance": 0.11349
}

Semantic roles & 50–950 ramp

primary
#8A3DA2
secondary
#8DBC7E
accent
#D55372
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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