#8A3FAC#8A3FAC

#8A3FAC is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.4% C 0.175 H 313.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8A3FAC
RGBrgb(138, 63, 172)
HSLhsl(281, 46%, 46%)
HSVhsv(281, 63%, 67%)
CMYKcmyk(19.8%, 63.4%, 0%, 32.5%)
CIE-LABlab(41.12, 49.73, -45.11)
CIE-LCHlch(41.12, 67.14, 317.79°)
OKLaboklab(51.38% 0.121 -0.1267)
OKLCHoklch(51.38% 0.175 313.7)
XYZxyz(19.7039, 11.9374, 40.2879)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FAC #61AC3F
analogous
#533FAC #8A3FAC #AC3F97
triadic
#8A3FAC #AC8A3F #3FAC8A
tetradic
#8A3FAC #AC533F #61AC3F #3F97AC
square
#8A3FAC #AC533F #61AC3F #3F97AC
split-complementary
#8A3FAC #97AC3F #3FAC53
monochromatic
#421E52 #662F7F #8A3FAC #A763C6 #C08FD6

Accessibility & contrast

On white

6.20
#8A3FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A3FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FAC
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FAC#FFFFFF#000000##FFFFFF
##8A3FAC1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135DAF
Deuteranopia (green-blind)
#3A63A9
Tritanopia (blue-blind)
#875370
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3fac;
/* rgb */ color: rgb(138, 63, 172);
/* oklch */ color: oklch(51.4% 0.175 313.7);
Tailwind
colors: {
  custom: {
    50: '#af79c5',
    500: '#8a3fac',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fac;
$custom-light: #af79c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fac",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 281.284,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51384,
    "c": 0.17522,
    "h": 313.7
  },
  "luminance": 0.11937
}

Semantic roles & 50–950 ramp

primary
#8A3FAC
secondary
#98C186
accent
#D6527B
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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