#8A5FA7#8A5FA7

#8A5FA7 is a mid, moderate violet. Relative luminance 0.164; OKLCH L 56.0% C 0.117 H 310.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA7
RGBrgb(138, 95, 167)
HSLhsl(276, 29%, 51%)
HSVhsv(276, 43%, 65%)
CMYKcmyk(17.4%, 43.1%, 0%, 34.5%)
CIE-LABlab(47.47, 31.31, -32.10)
CIE-LCHlch(47.47, 44.84, 314.29°)
OKLaboklab(55.98% 0.0763 -0.0891)
OKLCHoklch(55.98% 0.117 310.6)
XYZxyz(21.5472, 16.3781, 38.5779)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA7 #7CA75F
analogous
#665FA7 #8A5FA7 #A75FA0
triadic
#8A5FA7 #A78A5F #5FA78A
tetradic
#8A5FA7 #A7665F #7CA75F #5FA0A7
square
#8A5FA7 #A7665F #7CA75F #5FA0A7
split-complementary
#8A5FA7 #A0A75F #5FA766
monochromatic
#4A325A #6A4782 #8A5FA7 #A786BD #C4AED2

Accessibility & contrast

On white

4.91
#8A5FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8A5FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA7#FFFFFF#000000##FFFFFF
##8A5FA71.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506EAA
Deuteranopia (green-blind)
#5B71A5
Tritanopia (blue-blind)
#876A7B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5fa7;
/* rgb */ color: rgb(138, 95, 167);
/* oklch */ color: oklch(56.0% 0.117 310.6);
Tailwind
colors: {
  custom: {
    50: '#ad8dc1',
    500: '#8a5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa7;
$custom-light: #ad8dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa7",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 275.833,
    "s": 29.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.55984,
    "c": 0.11726,
    "h": 310.6
  },
  "luminance": 0.16378
}

Semantic roles & 50–950 ramp

primary
#8A5FA7
secondary
#AEC1A1
accent
#C5628A
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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