#8A5BC4#8A5BC4

#8A5BC4 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.160 H 302.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#8A5BC4
RGBrgb(138, 91, 196)
HSLhsl(267, 47%, 56%)
HSVhsv(267, 54%, 77%)
CMYKcmyk(29.6%, 53.6%, 0%, 23.1%)
CIE-LABlab(48.10, 40.55, -47.99)
CIE-LCHlch(48.10, 62.83, 310.20°)
OKLaboklab(56.95% 0.0854 -0.1353)
OKLCHoklch(56.95% 0.16 302.3)
XYZxyz(24.1839, 16.8709, 54.1962)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC4 #95C45B
analogous
#5B61C4 #8A5BC4 #BF5BC4
triadic
#8A5BC4 #C48A5B #5BC48A
tetradic
#8A5BC4 #C45B61 #95C45B #5BC4BF
square
#8A5BC4 #C45B61 #95C45B #5BC4BF
split-complementary
#8A5BC4 #C4BF5B #61C45B
monochromatic
#4E2C79 #6B3CA6 #8A5BC4 #AA88D4 #CAB5E4

Accessibility & contrast

On white

4.80
#8A5BC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#8A5BC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BC4
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BC4#FFFFFF#000000##FFFFFF
##8A5BC41.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3571C8
Deuteranopia (green-blind)
#4472C1
Tritanopia (blue-blind)
#7F6F87
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5bc4;
/* rgb */ color: rgb(138, 91, 196);
/* oklch */ color: oklch(57.0% 0.160 302.3);
Tailwind
colors: {
  custom: {
    50: '#af8bd6',
    500: '#8a5bc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc4;
$custom-light: #af8bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc4",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 196
  },
  "hsl": {
    "h": 266.857,
    "s": 47.085,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56951,
    "c": 0.15999,
    "h": 302.3
  },
  "luminance": 0.16871
}

Semantic roles & 50–950 ramp

primary
#8A5BC4
secondary
#C0D3A8
accent
#D7519B
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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