#8A4097#8A4097

#8A4097 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.2% C 0.152 H 321.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8A4097
RGBrgb(138, 64, 151)
HSLhsl(291, 40%, 42%)
HSVhsv(291, 58%, 59%)
CMYKcmyk(8.6%, 57.6%, 0%, 40.8%)
CIE-LABlab(40.09, 44.83, -34.17)
CIE-LCHlch(40.09, 56.37, 322.69°)
OKLaboklab(50.25% 0.1191 -0.0949)
OKLCHoklch(50.25% 0.152 321.5)
XYZxyz(17.8999, 11.3053, 30.5114)
Luminance0.1130 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4097 #4D9740
analogous
#5E4097 #8A4097 #974079
triadic
#8A4097 #978A40 #40978A
tetradic
#8A4097 #975E40 #4D9740 #407997
square
#8A4097 #975E40 #4D9740 #407997
split-complementary
#8A4097 #799740 #40975E
monochromatic
#3B1C41 #632E6C #8A4097 #AB5BB9 #C186CC

Accessibility & contrast

On white

6.44
#8A4097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8A4097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4097
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4097#FFFFFF#000000##FFFFFF
##8A40971.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#8B4D65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a4097;
/* rgb */ color: rgb(138, 64, 151);
/* oklch */ color: oklch(50.2% 0.152 321.5);
Tailwind
colors: {
  custom: {
    50: '#ae79b6',
    500: '#8a4097',
    950: '#000000',
  },
}
SCSS
$custom: #8a4097;
$custom-light: #ae79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4097",
  "rgb": {
    "r": 138,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 291.034,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.50247,
    "c": 0.15222,
    "h": 321.5
  },
  "luminance": 0.11304
}

Semantic roles & 50–950 ramp

primary
#8A4097
secondary
#85B67D
accent
#D0576A
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A4097

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

Preview Lab → · Contrast checker → · Palette generator →

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