#8A5FB5#8A5FB5

#8A5FB5 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 56.7% C 0.135 H 305.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8A5FB5
RGBrgb(138, 95, 181)
HSLhsl(270, 37%, 54%)
HSVhsv(270, 48%, 71%)
CMYKcmyk(23.8%, 47.5%, 0%, 29%)
CIE-LABlab(48.16, 34.61, -39.19)
CIE-LCHlch(48.16, 52.28, 311.45°)
OKLaboklab(56.74% 0.0785 -0.1096)
OKLCHoklch(56.74% 0.135 305.6)
XYZxyz(22.9122, 16.9240, 45.7667)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FB5 #8AB55F
analogous
#5F5FB5 #8A5FB5 #B55FB5
triadic
#8A5FB5 #B58A5F #5FB58A
tetradic
#8A5FB5 #B55F5F #8AB55F #5FB5B5
square
#8A5FB5 #B55F5F #8AB55F #5FB5B5
split-complementary
#8A5FB5 #B5B55F #5FB55F
monochromatic
#4D3169 #6B4493 #8A5FB5 #A989C8 #C7B3DC

Accessibility & contrast

On white

4.79
#8A5FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8A5FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FB5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FB5#FFFFFF#000000##FFFFFF
##8A5FB51.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4871B8
Deuteranopia (green-blind)
#5373B3
Tritanopia (blue-blind)
#836E81
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5fb5;
/* rgb */ color: rgb(138, 95, 181);
/* oklch */ color: oklch(56.7% 0.135 305.6);
Tailwind
colors: {
  custom: {
    50: '#ae8dcb',
    500: '#8a5fb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fb5;
$custom-light: #ae8dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fb5",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 270,
    "s": 36.752,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56735,
    "c": 0.13482,
    "h": 305.6
  },
  "luminance": 0.16924
}

Semantic roles & 50–950 ramp

primary
#8A5FB5
secondary
#B8CAA6
accent
#CD5B94
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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