#8A5EA2#8A5EA2

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

Color values

HEX#8A5EA2
RGBrgb(138, 94, 162)
HSLhsl(279, 27%, 50%)
HSVhsv(279, 42%, 64%)
CMYKcmyk(14.8%, 42%, 0%, 36.5%)
CIE-LABlab(47.00, 30.75, -29.89)
CIE-LCHlch(47.00, 42.88, 315.82°)
OKLaboklab(55.55% 0.0768 -0.0827)
OKLCHoklch(55.55% 0.113 312.9)
XYZxyz(21.0044, 16.0177, 36.1607)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EA2 #76A25E
analogous
#685EA2 #8A5EA2 #A25E98
triadic
#8A5EA2 #A28A5E #5EA28A
tetradic
#8A5EA2 #A2685E #76A25E #5E98A2
square
#8A5EA2 #A2685E #76A25E #5E98A2
split-complementary
#8A5EA2 #98A25E #5EA268
monochromatic
#483155 #69477B #8A5EA2 #A685B8 #C2ACCF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5EA2#FFFFFF#000000##FFFFFF
##8A5EA21.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)
#516DA4
Deuteranopia (green-blind)
#5C71A0
Tritanopia (blue-blind)
#886878
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5ea2;
/* rgb */ color: rgb(138, 94, 162);
/* oklch */ color: oklch(55.6% 0.113 312.9);
Tailwind
colors: {
  custom: {
    50: '#ad8cbe',
    500: '#8a5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ea2;
$custom-light: #ad8cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ea2",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 278.824,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55554,
    "c": 0.11285,
    "h": 312.9
  },
  "luminance": 0.16017
}

Semantic roles & 50–950 ramp

primary
#8A5EA2
secondary
#A9BD9F
accent
#C36586
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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