#8A5FA9#8A5FA9

#8A5FA9 is a mid, moderate violet. Relative luminance 0.165; OKLCH L 56.1% C 0.120 H 309.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA9
RGBrgb(138, 95, 169)
HSLhsl(275, 30%, 52%)
HSVhsv(275, 44%, 66%)
CMYKcmyk(18.3%, 43.8%, 0%, 33.7%)
CIE-LABlab(47.56, 31.77, -33.12)
CIE-LCHlch(47.56, 45.90, 313.81°)
OKLaboklab(56.09% 0.0766 -0.092)
OKLCHoklch(56.09% 0.12 309.8)
XYZxyz(21.7336, 16.4526, 39.5592)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA9 #7EA95F
analogous
#655FA9 #8A5FA9 #A95FA3
triadic
#8A5FA9 #A98A5F #5FA98A
tetradic
#8A5FA9 #A9655F #7EA95F #5FA3A9
square
#8A5FA9 #A9655F #7EA95F #5FA3A9
split-complementary
#8A5FA9 #A3A95F #5FA965
monochromatic
#4A325C #6A4784 #8A5FA9 #A787BE #C4AFD4

Accessibility & contrast

On white

4.89
#8A5FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8A5FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FA9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA9#FFFFFF#000000##FFFFFF
##8A5FA91.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6FAC
Deuteranopia (green-blind)
#5A72A7
Tritanopia (blue-blind)
#866A7C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5fa9;
/* rgb */ color: rgb(138, 95, 169);
/* oklch */ color: oklch(56.1% 0.120 309.8);
Tailwind
colors: {
  custom: {
    50: '#ad8dc3',
    500: '#8a5fa9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa9;
$custom-light: #ad8dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa9",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 169
  },
  "hsl": {
    "h": 274.865,
    "s": 30.081,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56088,
    "c": 0.11975,
    "h": 309.8
  },
  "luminance": 0.16452
}

Semantic roles & 50–950 ramp

primary
#8A5FA9
secondary
#AFC2A2
accent
#C6618C
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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