#8A5FA4#8A5FA4

#8A5FA4 is a mid, moderate violet. Relative luminance 0.163; OKLCH L 55.8% C 0.114 H 311.8°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA4
RGBrgb(138, 95, 164)
HSLhsl(277, 27%, 51%)
HSVhsv(277, 42%, 64%)
CMYKcmyk(15.9%, 42.1%, 0%, 35.7%)
CIE-LABlab(47.32, 30.62, -30.55)
CIE-LCHlch(47.32, 43.26, 315.07°)
OKLaboklab(55.83% 0.0757 -0.0846)
OKLCHoklch(55.83% 0.114 311.8)
XYZxyz(21.2731, 16.2684, 37.1342)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA4 #79A45F
analogous
#675FA4 #8A5FA4 #A45F9B
triadic
#8A5FA4 #A48A5F #5FA48A
tetradic
#8A5FA4 #A4675F #79A45F #5F9BA4
square
#8A5FA4 #A4675F #79A45F #5F9BA4
split-complementary
#8A5FA4 #9BA45F #5FA467
monochromatic
#493257 #6A487E #8A5FA4 #A786BA #C3ADD0

Accessibility & contrast

On white

4.94
#8A5FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A5FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA4#FFFFFF#000000##FFFFFF
##8A5FA41.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a5fa4;
/* rgb */ color: rgb(138, 95, 164);
/* oklch */ color: oklch(55.8% 0.114 311.8);
Tailwind
colors: {
  custom: {
    50: '#ad8dbf',
    500: '#8a5fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa4;
$custom-light: #ad8dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa4",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 277.391,
    "s": 27.49,
    "l": 50.784
  },
  "oklch": {
    "l": 0.55831,
    "c": 0.11352,
    "h": 311.8
  },
  "luminance": 0.16268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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