#8A5FA3#8A5FA3

#8A5FA3 is a mid, moderate violet. Relative luminance 0.162; OKLCH L 55.8% C 0.112 H 312.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A5FA3
RGBrgb(138, 95, 163)
HSLhsl(278, 27%, 51%)
HSVhsv(278, 42%, 64%)
CMYKcmyk(15.3%, 41.7%, 0%, 36.1%)
CIE-LABlab(47.28, 30.40, -30.04)
CIE-LCHlch(47.28, 42.73, 315.34°)
OKLaboklab(55.78% 0.0755 -0.0831)
OKLCHoklch(55.78% 0.112 312.2)
XYZxyz(21.1832, 16.2324, 36.6605)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FA3 #78A35F
analogous
#685FA3 #8A5FA3 #A35F9A
triadic
#8A5FA3 #A38A5F #5FA38A
tetradic
#8A5FA3 #A3685F #78A35F #5F9AA3
square
#8A5FA3 #A3685F #78A35F #5F9AA3
split-complementary
#8A5FA3 #9AA35F #5FA368
monochromatic
#493256 #69487D #8A5FA3 #A686B9 #C3ADD0

Accessibility & contrast

On white

4.95
#8A5FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A5FA3
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FA3#FFFFFF#000000##FFFFFF
##8A5FA31.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#526EA6
Deuteranopia (green-blind)
#5D71A1
Tritanopia (blue-blind)
#886979
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5fa3;
/* rgb */ color: rgb(138, 95, 163);
/* oklch */ color: oklch(55.8% 0.112 312.2);
Tailwind
colors: {
  custom: {
    50: '#ad8dbe',
    500: '#8a5fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fa3;
$custom-light: #ad8dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fa3",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 277.941,
    "s": 26.984,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5578,
    "c": 0.11228,
    "h": 312.2
  },
  "luminance": 0.16232
}

Semantic roles & 50–950 ramp

primary
#8A5FA3
secondary
#ABBEA0
accent
#C36487
background
#FAF8FB
surface
#F4F0F7
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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