#8A5FB7#8A5FB7

#8A5FB7 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.8% C 0.137 H 305.0°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A5FB7
RGBrgb(138, 95, 183)
HSLhsl(269, 38%, 55%)
HSVhsv(269, 48%, 72%)
CMYKcmyk(24.6%, 48.1%, 0%, 28.2%)
CIE-LABlab(48.27, 35.09, -40.19)
CIE-LCHlch(48.27, 53.35, 311.13°)
OKLaboklab(56.85% 0.0788 -0.1125)
OKLCHoklch(56.85% 0.137 305)
XYZxyz(23.1189, 17.0067, 46.8552)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FB7 #8CB75F
analogous
#5F60B7 #8A5FB7 #B65FB7
triadic
#8A5FB7 #B78A5F #5FB78A
tetradic
#8A5FB7 #B75F60 #8CB75F #5FB7B6
square
#8A5FB7 #B75F60 #8CB75F #5FB7B6
split-complementary
#8A5FB7 #B7B65F #60B75F
monochromatic
#4D306B #6B4396 #8A5FB7 #A989CA #C8B3DD

Accessibility & contrast

On white

4.77
#8A5FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A5FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FB7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FB7#FFFFFF#000000##FFFFFF
##8A5FB71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4771BA
Deuteranopia (green-blind)
#5273B5
Tritanopia (blue-blind)
#836E82
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5fb7;
/* rgb */ color: rgb(138, 95, 183);
/* oklch */ color: oklch(56.8% 0.137 305.0);
Tailwind
colors: {
  custom: {
    50: '#ae8dcd',
    500: '#8a5fb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fb7;
$custom-light: #ae8dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fb7",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 269.318,
    "s": 37.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.56846,
    "c": 0.13735,
    "h": 305
  },
  "luminance": 0.17007
}

Semantic roles & 50–950 ramp

primary
#8A5FB7
secondary
#B9CCA6
accent
#CE5A95
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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