#8A5FA5#8A5FA5

#8A5FA5 is a mid, moderate violet. Relative luminance 0.163; OKLCH L 55.9% C 0.115 H 311.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA5
RGBrgb(138, 95, 165)
HSLhsl(277, 28%, 51%)
HSVhsv(277, 42%, 65%)
CMYKcmyk(16.4%, 42.4%, 0%, 35.3%)
CIE-LABlab(47.37, 30.85, -31.07)
CIE-LCHlch(47.37, 43.79, 314.80°)
OKLaboklab(55.88% 0.0759 -0.0861)
OKLCHoklch(55.88% 0.115 311.4)
XYZxyz(21.3638, 16.3047, 37.6117)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA5 #7AA55F
analogous
#675FA5 #8A5FA5 #A55F9D
triadic
#8A5FA5 #A58A5F #5FA58A
tetradic
#8A5FA5 #A5675F #7AA55F #5F9DA5
square
#8A5FA5 #A5675F #7AA55F #5F9DA5
split-complementary
#8A5FA5 #9DA55F #5FA567
monochromatic
#493258 #6A487F #8A5FA5 #A786BB #C3ADD1

Accessibility & contrast

On white

4.93
#8A5FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8A5FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA5#FFFFFF#000000##FFFFFF
##8A5FA51.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#516EA8
Deuteranopia (green-blind)
#5C71A3
Tritanopia (blue-blind)
#87697A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5fa5;
/* rgb */ color: rgb(138, 95, 165);
/* oklch */ color: oklch(55.9% 0.115 311.4);
Tailwind
colors: {
  custom: {
    50: '#ad8dc0',
    500: '#8a5fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa5;
$custom-light: #ad8dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa5",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 165
  },
  "hsl": {
    "h": 276.857,
    "s": 28,
    "l": 50.98
  },
  "oklch": {
    "l": 0.55882,
    "c": 0.11476,
    "h": 311.4
  },
  "luminance": 0.16304
}

Semantic roles & 50–950 ramp

primary
#8A5FA5
secondary
#ACBFA0
accent
#C46389
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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