#8A3497#8A3497

#8A3497 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.7% C 0.170 H 322.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8A3497
RGBrgb(138, 52, 151)
HSLhsl(292, 49%, 40%)
HSVhsv(292, 66%, 59%)
CMYKcmyk(8.6%, 65.6%, 0%, 40.8%)
CIE-LABlab(38.01, 50.52, -37.46)
CIE-LCHlch(38.01, 62.90, 323.44°)
OKLaboklab(48.74% 0.1345 -0.1043)
OKLCHoklch(48.74% 0.17 322.2)
XYZxyz(17.2946, 10.0945, 30.3096)
Luminance0.1009 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3497 #419734
analogous
#583497 #8A3497 #973473
triadic
#8A3497 #978A34 #34978A
tetradic
#8A3497 #975834 #419734 #347397
square
#8A3497 #975834 #419734 #347397
split-complementary
#8A3497 #739734 #349758
monochromatic
#37153C #602469 #8A3497 #B048C0 #C476D0

Accessibility & contrast

On white

6.96
#8A3497 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A3497 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3497
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3497#FFFFFF#000000##FFFFFF
##8A34971.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C539A
Deuteranopia (green-blind)
#415D94
Tritanopia (blue-blind)
#8C4461
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3497;
/* rgb */ color: rgb(138, 52, 151);
/* oklch */ color: oklch(48.7% 0.170 322.2);
Tailwind
colors: {
  custom: {
    50: '#af72b6',
    500: '#8a3497',
    950: '#000000',
  },
}
SCSS
$custom: #8a3497;
$custom-light: #af72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3497",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 292.121,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48735,
    "c": 0.17023,
    "h": 322.2
  },
  "luminance": 0.10094
}

Semantic roles & 50–950 ramp

primary
#8A3497
secondary
#78B86F
accent
#D84F61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3497

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

Preview Lab → · Contrast checker → · Palette generator →

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