#8A5097#8A5097

#8A5097 is a mid, vivid purple. Relative luminance 0.134; OKLCH L 52.6% C 0.125 H 320.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5097
RGBrgb(138, 80, 151)
HSLhsl(289, 31%, 45%)
HSVhsv(289, 47%, 59%)
CMYKcmyk(8.6%, 47%, 0%, 40.8%)
CIE-LABlab(43.32, 36.31, -29.09)
CIE-LCHlch(43.32, 46.53, 321.31°)
OKLaboklab(52.63% 0.096 -0.0803)
OKLCHoklch(52.63% 0.125 320.1)
XYZxyz(18.9351, 13.3757, 30.8565)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5097 #5D9750
analogous
#665097 #8A5097 #975080
triadic
#8A5097 #978A50 #50978A
tetradic
#8A5097 #976650 #5D9750 #508097
square
#8A5097 #976650 #5D9750 #508097
split-complementary
#8A5097 #809750 #509766
monochromatic
#412647 #653B6F #8A5097 #A771B4 #C099C9

Accessibility & contrast

On white

5.71
#8A5097 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A5097 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5097
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5097#FFFFFF#000000##FFFFFF
##8A50971.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5097;
/* rgb */ color: rgb(138, 80, 151);
/* oklch */ color: oklch(52.6% 0.125 320.1);
Tailwind
colors: {
  custom: {
    50: '#ae83b6',
    500: '#8a5097',
    950: '#000000',
  },
}
SCSS
$custom: #8a5097;
$custom-light: #ae83b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5097",
  "rgb": {
    "r": 138,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 289.014,
    "s": 30.736,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52634,
    "c": 0.12512,
    "h": 320.1
  },
  "luminance": 0.13375
}

Semantic roles & 50–950 ramp

primary
#8A5097
secondary
#95B68D
accent
#C76174
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#100B11
muted
#7F7C80

Preview Lab

Preview with #8A5097

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

Preview Lab → · Contrast checker → · Palette generator →

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