#8A3DAF#8A3DAF

#8A3DAF is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.3% C 0.181 H 312.9°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A3DAF
RGBrgb(138, 61, 175)
HSLhsl(281, 48%, 46%)
HSVhsv(281, 65%, 69%)
CMYKcmyk(21.1%, 65.1%, 0%, 31.4%)
CIE-LABlab(40.96, 51.34, -47.14)
CIE-LCHlch(40.96, 69.70, 317.44°)
OKLaboklab(51.33% 0.1233 -0.1327)
OKLCHoklch(51.33% 0.181 312.9)
XYZxyz(19.8865, 11.8365, 41.7862)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DAF #62AF3D
analogous
#513DAF #8A3DAF #AF3D9B
triadic
#8A3DAF #AF8A3D #3DAF8A
tetradic
#8A3DAF #AF513D #62AF3D #3D9BAF
square
#8A3DAF #AF513D #62AF3D #3D9BAF
split-complementary
#8A3DAF #9BAF3D #3DAF51
monochromatic
#421D54 #662D82 #8A3DAF #A761C8 #C08FD8

Accessibility & contrast

On white

6.24
#8A3DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A3DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DAF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DAF#FFFFFF#000000##FFFFFF
##8A3DAF1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB2
Deuteranopia (green-blind)
#3562AC
Tritanopia (blue-blind)
#865371
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3daf;
/* rgb */ color: rgb(138, 61, 175);
/* oklch */ color: oklch(51.3% 0.181 312.9);
Tailwind
colors: {
  custom: {
    50: '#b078c7',
    500: '#8a3daf',
    950: '#000000',
  },
}
SCSS
$custom: #8a3daf;
$custom-light: #b078c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3daf",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 280.526,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51327,
    "c": 0.18114,
    "h": 312.9
  },
  "luminance": 0.11836
}

Semantic roles & 50–950 ramp

primary
#8A3DAF
secondary
#99C385
accent
#D8507C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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