#8A5FAC#8A5FAC

#8A5FAC is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.2% C 0.123 H 308.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A5FAC
RGBrgb(138, 95, 172)
HSLhsl(274, 32%, 52%)
HSVhsv(274, 45%, 67%)
CMYKcmyk(19.8%, 44.8%, 0%, 32.5%)
CIE-LABlab(47.71, 32.47, -34.65)
CIE-LCHlch(47.71, 47.49, 313.14°)
OKLaboklab(56.25% 0.0772 -0.0964)
OKLCHoklch(56.25% 0.124 308.7)
XYZxyz(22.0184, 16.5665, 41.0594)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FAC #81AC5F
analogous
#635FAC #8A5FAC #AC5FA8
triadic
#8A5FAC #AC8A5F #5FAC8A
tetradic
#8A5FAC #AC635F #81AC5F #5FA8AC
square
#8A5FAC #AC635F #81AC5F #5FA8AC
split-complementary
#8A5FAC #A8AC5F #5FAC63
monochromatic
#4B315F #6B4688 #8A5FAC #A787C1 #C5B0D6

Accessibility & contrast

On white

4.87
#8A5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8A5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FAC
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FAC#FFFFFF#000000##FFFFFF
##8A5FAC1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6FAF
Deuteranopia (green-blind)
#5872AA
Tritanopia (blue-blind)
#866B7D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5fac;
/* rgb */ color: rgb(138, 95, 172);
/* oklch */ color: oklch(56.2% 0.123 308.7);
Tailwind
colors: {
  custom: {
    50: '#ae8dc5',
    500: '#8a5fac',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fac;
$custom-light: #ae8dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fac",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 273.506,
    "s": 31.687,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56246,
    "c": 0.1235,
    "h": 308.7
  },
  "luminance": 0.16566
}

Semantic roles & 50–950 ramp

primary
#8A5FAC
secondary
#B1C4A3
accent
#C8608E
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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