#8A5EA1#8A5EA1

#8A5EA1 is a mid, moderate violet. Relative luminance 0.160; OKLCH L 55.5% C 0.112 H 313.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5EA1
RGBrgb(138, 94, 161)
HSLhsl(279, 26%, 50%)
HSVhsv(279, 42%, 63%)
CMYKcmyk(14.3%, 41.6%, 0%, 36.9%)
CIE-LABlab(46.95, 30.53, -29.37)
CIE-LCHlch(46.95, 42.36, 316.11°)
OKLaboklab(55.5% 0.0766 -0.0812)
OKLCHoklch(55.5% 0.112 313.3)
XYZxyz(20.9159, 15.9823, 35.6944)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EA1 #75A15E
analogous
#685EA1 #8A5EA1 #A15E97
triadic
#8A5EA1 #A18A5E #5EA18A
tetradic
#8A5EA1 #A1685E #75A15E #5E97A1
square
#8A5EA1 #A1685E #75A15E #5E97A1
split-complementary
#8A5EA1 #97A15E #5EA168
monochromatic
#483154 #69477A #8A5EA1 #A685B8 #C2ABCE

Accessibility & contrast

On white

5.00
#8A5EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8A5EA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EA1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EA1#FFFFFF#000000##FFFFFF
##8A5EA11.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526DA3
Deuteranopia (green-blind)
#5D709F
Tritanopia (blue-blind)
#886778
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ea1;
/* rgb */ color: rgb(138, 94, 161);
/* oklch */ color: oklch(55.5% 0.112 313.3);
Tailwind
colors: {
  custom: {
    50: '#ad8cbd',
    500: '#8a5ea1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ea1;
$custom-light: #ad8cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ea1",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 279.403,
    "s": 26.275,
    "l": 50
  },
  "oklch": {
    "l": 0.55504,
    "c": 0.11162,
    "h": 313.3
  },
  "luminance": 0.15982
}

Semantic roles & 50–950 ramp

primary
#8A5EA1
secondary
#A9BC9E
accent
#C36585
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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