#8A5CB8#8A5CB8

#8A5CB8 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.4% C 0.144 H 305.4°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A5CB8
RGBrgb(138, 92, 184)
HSLhsl(270, 39%, 54%)
HSVhsv(270, 50%, 72%)
CMYKcmyk(25%, 50%, 0%, 27.8%)
CIE-LABlab(47.65, 37.05, -41.75)
CIE-LCHlch(47.65, 55.82, 311.58°)
OKLaboklab(56.4% 0.0831 -0.1171)
OKLCHoklch(56.4% 0.144 305.4)
XYZxyz(22.9583, 16.5184, 47.3170)
Luminance0.1652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CB8 #8AB85C
analogous
#5C5CB8 #8A5CB8 #B85CB8
triadic
#8A5CB8 #B88A5C #5CB88A
tetradic
#8A5CB8 #B85C5C #8AB85C #5CB8B8
square
#8A5CB8 #B85C5C #8AB85C #5CB8B8
split-complementary
#8A5CB8 #B8B85C #5CB85C
monochromatic
#4D2F6B #6B4196 #8A5CB8 #A987CB #C7B1DD

Accessibility & contrast

On white

4.88
#8A5CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A5CB8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CB8#FFFFFF#000000##FFFFFF
##8A5CB81.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4170BB
Deuteranopia (green-blind)
#4E71B6
Tritanopia (blue-blind)
#836C81
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5cb8;
/* rgb */ color: rgb(138, 92, 184);
/* oklch */ color: oklch(56.4% 0.144 305.4);
Tailwind
colors: {
  custom: {
    50: '#ae8bce',
    500: '#8a5cb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cb8;
$custom-light: #ae8bce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cb8",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 270,
    "s": 39.316,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.14355,
    "h": 305.4
  },
  "luminance": 0.16518
}

Semantic roles & 50–950 ramp

primary
#8A5CB8
secondary
#B8CBA4
accent
#CF5994
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C13
muted
#807D82

Preview Lab

Preview with #8A5CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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