#8A5CB7#8A5CB7

#8A5CB7 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.3% C 0.142 H 305.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A5CB7
RGBrgb(138, 92, 183)
HSLhsl(270, 39%, 54%)
HSVhsv(270, 50%, 72%)
CMYKcmyk(24.6%, 49.7%, 0%, 28.2%)
CIE-LABlab(47.59, 36.81, -41.26)
CIE-LCHlch(47.59, 55.29, 311.74°)
OKLaboklab(56.34% 0.083 -0.1156)
OKLCHoklch(56.34% 0.142 305.7)
XYZxyz(22.8538, 16.4766, 46.7669)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CB7 #89B75C
analogous
#5D5CB7 #8A5CB7 #B75CB6
triadic
#8A5CB7 #B78A5C #5CB78A
tetradic
#8A5CB7 #B75D5C #89B75C #5CB6B7
square
#8A5CB7 #B75D5C #89B75C #5CB6B7
split-complementary
#8A5CB7 #B6B75C #5CB75D
monochromatic
#4D2F6A #6B4294 #8A5CB7 #A886CA #C7B1DD

Accessibility & contrast

On white

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

On black

4.30
#8A5CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A5CB7#FFFFFF#000000##FFFFFF
##8A5CB71.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426FBA
Deuteranopia (green-blind)
#4F71B5
Tritanopia (blue-blind)
#836C81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5cb7;
/* rgb */ color: rgb(138, 92, 183);
/* oklch */ color: oklch(56.3% 0.142 305.7);
Tailwind
colors: {
  custom: {
    50: '#ae8bcd',
    500: '#8a5cb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cb7;
$custom-light: #ae8bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cb7",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 270.33,
    "s": 38.723,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56344,
    "c": 0.14231,
    "h": 305.7
  },
  "luminance": 0.16476
}

Semantic roles & 50–950 ramp

primary
#8A5CB7
secondary
#B7CBA4
accent
#CF5993
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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