#8A3FA8#8A3FA8

#8A3FA8 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.1% C 0.171 H 315.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8A3FA8
RGBrgb(138, 63, 168)
HSLhsl(283, 45%, 45%)
HSVhsv(283, 63%, 66%)
CMYKcmyk(17.9%, 62.5%, 0%, 34.1%)
CIE-LABlab(40.87, 48.87, -43.12)
CIE-LCHlch(40.87, 65.17, 318.58°)
OKLaboklab(51.13% 0.121 -0.1209)
OKLCHoklch(51.13% 0.171 315)
XYZxyz(19.3255, 11.7861, 38.2951)
Luminance0.1178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA8 #5DA83F
analogous
#553FA8 #8A3FA8 #A83F92
triadic
#8A3FA8 #A88A3F #3FA88A
tetradic
#8A3FA8 #A8553F #5DA83F #3F92A8
square
#8A3FA8 #A8553F #5DA83F #3F92A8
split-complementary
#8A3FA8 #92A83F #3FA855
monochromatic
#411E4F #652E7B #8A3FA8 #A761C4 #C08DD4

Accessibility & contrast

On white

6.26
#8A3FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A3FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FA8
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FA8#FFFFFF#000000##FFFFFF
##8A3FA81.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5CAB
Deuteranopia (green-blind)
#3D62A5
Tritanopia (blue-blind)
#88526E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3fa8;
/* rgb */ color: rgb(138, 63, 168);
/* oklch */ color: oklch(51.1% 0.171 315.0);
Tailwind
colors: {
  custom: {
    50: '#af79c2',
    500: '#8a3fa8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa8;
$custom-light: #af79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa8",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 168
  },
  "hsl": {
    "h": 282.857,
    "s": 45.455,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5113,
    "c": 0.17108,
    "h": 315
  },
  "luminance": 0.11785
}

Semantic roles & 50–950 ramp

primary
#8A3FA8
secondary
#95BF84
accent
#D55378
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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