#8A3CAF#8A3CAF

#8A3CAF is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.2% C 0.183 H 313.0°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A3CAF
RGBrgb(138, 60, 175)
HSLhsl(281, 49%, 46%)
HSVhsv(281, 66%, 69%)
CMYKcmyk(21.1%, 65.7%, 0%, 31.4%)
CIE-LABlab(40.78, 51.81, -47.42)
CIE-LCHlch(40.78, 70.23, 317.53°)
OKLaboklab(51.2% 0.1245 -0.1335)
OKLCHoklch(51.2% 0.183 313)
XYZxyz(19.8336, 11.7307, 41.7686)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CAF #61AF3C
analogous
#513CAF #8A3CAF #AF3C9A
triadic
#8A3CAF #AF8A3C #3CAF8A
tetradic
#8A3CAF #AF513C #61AF3C #3C9AAF
square
#8A3CAF #AF513C #61AF3C #3C9AAF
split-complementary
#8A3CAF #9AAF3C #3CAF51
monochromatic
#421D54 #662C81 #8A3CAF #A760C8 #C08DD8

Accessibility & contrast

On white

6.28
#8A3CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A3CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CAF
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CAF#FFFFFF#000000##FFFFFF
##8A3CAF1.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#3462AC
Tritanopia (blue-blind)
#865270
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3caf;
/* rgb */ color: rgb(138, 60, 175);
/* oklch */ color: oklch(51.2% 0.183 313.0);
Tailwind
colors: {
  custom: {
    50: '#b077c7',
    500: '#8a3caf',
    950: '#000000',
  },
}
SCSS
$custom: #8a3caf;
$custom-light: #b077c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3caf",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 175
  },
  "hsl": {
    "h": 280.696,
    "s": 48.936,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51204,
    "c": 0.18252,
    "h": 313
  },
  "luminance": 0.1173
}

Semantic roles & 50–950 ramp

primary
#8A3CAF
secondary
#98C384
accent
#D84F7B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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