#8A5FB0#8A5FB0

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

Color values

HEX#8A5FB0
RGBrgb(138, 95, 176)
HSLhsl(272, 34%, 53%)
HSVhsv(272, 46%, 69%)
CMYKcmyk(21.6%, 46%, 0%, 31%)
CIE-LABlab(47.91, 33.42, -36.68)
CIE-LCHlch(47.91, 49.62, 312.34°)
OKLaboklab(56.46% 0.0778 -0.1023)
OKLCHoklch(56.46% 0.129 307.2)
XYZxyz(22.4084, 16.7225, 43.1132)
Luminance0.1672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FB0 #85B05F
analogous
#615FB0 #8A5FB0 #B05FAD
triadic
#8A5FB0 #B08A5F #5FB08A
tetradic
#8A5FB0 #B0615F #85B05F #5FADB0
square
#8A5FB0 #B0615F #85B05F #5FADB0
split-complementary
#8A5FB0 #ADB05F #5FB061
monochromatic
#4C3163 #6B458C #8A5FB0 #A888C4 #C6B1D8

Accessibility & contrast

On white

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

On black

4.34
#8A5FB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A5FB0#FFFFFF#000000##FFFFFF
##8A5FB01.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B70B3
Deuteranopia (green-blind)
#5672AE
Tritanopia (blue-blind)
#856C7F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5fb0;
/* rgb */ color: rgb(138, 95, 176);
/* oklch */ color: oklch(56.5% 0.129 307.2);
Tailwind
colors: {
  custom: {
    50: '#ae8dc8',
    500: '#8a5fb0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fb0;
$custom-light: #ae8dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fb0",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 176
  },
  "hsl": {
    "h": 271.852,
    "s": 33.891,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5646,
    "c": 0.12852,
    "h": 307.2
  },
  "luminance": 0.16722
}

Semantic roles & 50–950 ramp

primary
#8A5FB0
secondary
#B4C7A4
accent
#CA5E91
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FB0

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

Preview Lab → · Contrast checker → · Palette generator →

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