#8A4E9B#8A4E9B

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

Color values

HEX#8A4E9B
RGBrgb(138, 78, 155)
HSLhsl(287, 33%, 46%)
HSVhsv(287, 50%, 61%)
CMYKcmyk(11%, 49.7%, 0%, 39.2%)
CIE-LABlab(43.09, 38.27, -31.84)
CIE-LCHlch(43.09, 49.78, 320.23°)
OKLaboklab(52.53% 0.0996 -0.0882)
OKLCHoklch(52.53% 0.133 318.5)
XYZxyz(19.1212, 13.2193, 32.5483)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E9B #5F9B4E
analogous
#634E9B #8A4E9B #9B4E85
triadic
#8A4E9B #9B8A4E #4E9B8A
tetradic
#8A4E9B #9B634E #5F9B4E #4E859B
square
#8A4E9B #9B634E #5F9B4E #4E859B
split-complementary
#8A4E9B #859B4E #4E9B63
monochromatic
#42254A #663A72 #8A4E9B #A76FB7 #C098CB

Accessibility & contrast

On white

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

On black

3.64
#8A4E9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A4E9B#FFFFFF#000000##FFFFFF
##8A4E9B1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40629E
Deuteranopia (green-blind)
#526899
Tritanopia (blue-blind)
#8A596D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4e9b;
/* rgb */ color: rgb(138, 78, 155);
/* oklch */ color: oklch(52.5% 0.133 318.5);
Tailwind
colors: {
  custom: {
    50: '#ae82b9',
    500: '#8a4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e9b;
$custom-light: #ae82b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e9b",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 286.753,
    "s": 33.047,
    "l": 45.686
  },
  "oklch": {
    "l": 0.52526,
    "c": 0.13304,
    "h": 318.5
  },
  "luminance": 0.13219
}

Semantic roles & 50–950 ramp

primary
#8A4E9B
secondary
#96B88D
accent
#C95F76
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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