#8A5EC0#8A5EC0

#8A5EC0 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.2% C 0.150 H 302.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5EC0
RGBrgb(138, 94, 192)
HSLhsl(267, 44%, 56%)
HSVhsv(267, 51%, 75%)
CMYKcmyk(28.1%, 51%, 0%, 24.7%)
CIE-LABlab(48.53, 37.87, -44.99)
CIE-LCHlch(48.53, 58.81, 310.09°)
OKLaboklab(57.2% 0.0811 -0.1265)
OKLCHoklch(57.2% 0.15 302.7)
XYZxyz(23.9962, 17.2145, 51.9175)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EC0 #94C05E
analogous
#5E63C0 #8A5EC0 #BB5EC0
triadic
#8A5EC0 #C08A5E #5EC08A
tetradic
#8A5EC0 #C05E63 #94C05E #5EC0BB
square
#8A5EC0 #C05E63 #94C05E #5EC0BB
split-complementary
#8A5EC0 #C0BB5E #63C05E
monochromatic
#4E2E76 #6B3FA2 #8A5EC0 #AA8AD1 #CAB6E2

Accessibility & contrast

On white

4.73
#8A5EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8A5EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EC0
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EC0#FFFFFF#000000##FFFFFF
##8A5EC01.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E72C3
Deuteranopia (green-blind)
#4B73BE
Tritanopia (blue-blind)
#807086
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5ec0;
/* rgb */ color: rgb(138, 94, 192);
/* oklch */ color: oklch(57.2% 0.150 302.7);
Tailwind
colors: {
  custom: {
    50: '#af8dd3',
    500: '#8a5ec0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ec0;
$custom-light: #af8dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ec0",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 192
  },
  "hsl": {
    "h": 266.939,
    "s": 43.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57198,
    "c": 0.15029,
    "h": 302.7
  },
  "luminance": 0.17214
}

Semantic roles & 50–950 ramp

primary
#8A5EC0
secondary
#BFD1A9
accent
#D3549A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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