#8A4F97#8A4F97

#8A4F97 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 52.5% C 0.127 H 320.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A4F97
RGBrgb(138, 79, 151)
HSLhsl(289, 31%, 45%)
HSVhsv(289, 48%, 59%)
CMYKcmyk(8.6%, 47.7%, 0%, 40.8%)
CIE-LABlab(43.11, 36.87, -29.42)
CIE-LCHlch(43.11, 47.17, 321.41°)
OKLaboklab(52.47% 0.0975 -0.0812)
OKLCHoklch(52.47% 0.127 320.2)
XYZxyz(18.8624, 13.2303, 30.8323)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4F97 #5C974F
analogous
#664F97 #8A4F97 #974F80
triadic
#8A4F97 #978A4F #4F978A
tetradic
#8A4F97 #97664F #5C974F #4F8097
square
#8A4F97 #97664F #5C974F #4F8097
split-complementary
#8A4F97 #80974F #4F9766
monochromatic
#412547 #653A6F #8A4F97 #A76FB4 #C098C9

Accessibility & contrast

On white

5.76
#8A4F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A4F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4F97
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4F97#FFFFFF#000000##FFFFFF
##8A4F971.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446299
Deuteranopia (green-blind)
#556895
Tritanopia (blue-blind)
#8B586C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4f97;
/* rgb */ color: rgb(138, 79, 151);
/* oklch */ color: oklch(52.5% 0.127 320.2);
Tailwind
colors: {
  custom: {
    50: '#ae82b6',
    500: '#8a4f97',
    950: '#000000',
  },
}
SCSS
$custom: #8a4f97;
$custom-light: #ae82b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4f97",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 289.167,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52474,
    "c": 0.12689,
    "h": 320.2
  },
  "luminance": 0.1323
}

Semantic roles & 50–950 ramp

primary
#8A4F97
secondary
#94B68C
accent
#C76073
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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