#8A5CBD#8A5CBD

#8A5CBD is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.150 H 303.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A5CBD
RGBrgb(138, 92, 189)
HSLhsl(268, 42%, 55%)
HSVhsv(268, 51%, 74%)
CMYKcmyk(27%, 51.3%, 0%, 25.9%)
CIE-LABlab(47.92, 38.26, -44.22)
CIE-LCHlch(47.92, 58.48, 310.87°)
OKLaboklab(56.69% 0.0836 -0.1243)
OKLCHoklch(56.69% 0.15 303.9)
XYZxyz(23.4917, 16.7318, 50.1262)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CBD #8FBD5C
analogous
#5C5EBD #8A5CBD #BB5CBD
triadic
#8A5CBD #BD8A5C #5CBD8A
tetradic
#8A5CBD #BD5C5E #8FBD5C #5CBDBB
square
#8A5CBD #BD5C5E #8FBD5C #5CBDBB
split-complementary
#8A5CBD #BDBB5C #5EBD5C
monochromatic
#4E2E71 #6C3F9C #8A5CBD #A988CF #C9B3E0

Accessibility & contrast

On white

4.83
#8A5CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#8A5CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CBD
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CBD#FFFFFF#000000##FFFFFF
##8A5CBD1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D71C0
Deuteranopia (green-blind)
#4B72BB
Tritanopia (blue-blind)
#816E84
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5cbd;
/* rgb */ color: rgb(138, 92, 189);
/* oklch */ color: oklch(56.7% 0.150 303.9);
Tailwind
colors: {
  custom: {
    50: '#af8bd1',
    500: '#8a5cbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cbd;
$custom-light: #af8bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cbd",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 189
  },
  "hsl": {
    "h": 268.454,
    "s": 42.358,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56692,
    "c": 0.14975,
    "h": 303.9
  },
  "luminance": 0.16732
}

Semantic roles & 50–950 ramp

primary
#8A5CBD
secondary
#BBCFA6
accent
#D25697
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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