#8A5CBB#8A5CBB

#8A5CBB is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.6% C 0.147 H 304.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A5CBB
RGBrgb(138, 92, 187)
HSLhsl(269, 41%, 55%)
HSVhsv(269, 51%, 73%)
CMYKcmyk(26.2%, 50.8%, 0%, 26.7%)
CIE-LABlab(47.81, 37.78, -43.24)
CIE-LCHlch(47.81, 57.41, 311.14°)
OKLaboklab(56.58% 0.0834 -0.1214)
OKLCHoklch(56.58% 0.147 304.5)
XYZxyz(23.2761, 16.6455, 48.9908)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CBB #8DBB5C
analogous
#5C5DBB #8A5CBB #BA5CBB
triadic
#8A5CBB #BB8A5C #5CBB8A
tetradic
#8A5CBB #BB5C5D #8DBB5C #5CBBBA
square
#8A5CBB #BB5C5D #8DBB5C #5CBBBA
split-complementary
#8A5CBB #BBBA5C #5DBB5C
monochromatic
#4D2E6F #6B409A #8A5CBB #A987CD #C8B2DF

Accessibility & contrast

On white

4.85
#8A5CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#8A5CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CBB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CBB#FFFFFF#000000##FFFFFF
##8A5CBB1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F70BE
Deuteranopia (green-blind)
#4C72B9
Tritanopia (blue-blind)
#826D83
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5cbb;
/* rgb */ color: rgb(138, 92, 187);
/* oklch */ color: oklch(56.6% 0.147 304.5);
Tailwind
colors: {
  custom: {
    50: '#ae8bd0',
    500: '#8a5cbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cbb;
$custom-light: #ae8bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cbb",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 269.053,
    "s": 41.126,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56575,
    "c": 0.14727,
    "h": 304.5
  },
  "luminance": 0.16645
}

Semantic roles & 50–950 ramp

primary
#8A5CBB
secondary
#BACDA5
accent
#D15796
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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