#8A5CBF#8A5CBF

#8A5CBF is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.8% C 0.152 H 303.4°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A5CBF
RGBrgb(138, 92, 191)
HSLhsl(268, 44%, 55%)
HSVhsv(268, 52%, 75%)
CMYKcmyk(27.7%, 51.8%, 0%, 25.1%)
CIE-LABlab(48.03, 38.76, -45.20)
CIE-LCHlch(48.03, 59.54, 310.61°)
OKLaboklab(56.81% 0.0837 -0.1272)
OKLCHoklch(56.81% 0.152 303.4)
XYZxyz(23.7103, 16.8192, 51.2774)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CBF #91BF5C
analogous
#5C5FBF #8A5CBF #BB5CBF
triadic
#8A5CBF #BF8A5C #5CBF8A
tetradic
#8A5CBF #BF5C5F #91BF5C #5CBFBB
square
#8A5CBF #BF5C5F #91BF5C #5CBFBB
split-complementary
#8A5CBF #BFBB5C #5FBF5C
monochromatic
#4E2D73 #6B3F9F #8A5CBF #AA88D0 #C9B4E2

Accessibility & contrast

On white

4.81
#8A5CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#8A5CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CBF
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CBF#FFFFFF#000000##FFFFFF
##8A5CBF1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C71C2
Deuteranopia (green-blind)
#4972BD
Tritanopia (blue-blind)
#816E85
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a5cbf;
/* rgb */ color: rgb(138, 92, 191);
/* oklch */ color: oklch(56.8% 0.152 303.4);
Tailwind
colors: {
  custom: {
    50: '#af8bd3',
    500: '#8a5cbf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cbf;
$custom-light: #af8bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cbf",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 191
  },
  "hsl": {
    "h": 267.879,
    "s": 43.612,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56811,
    "c": 0.15224,
    "h": 303.4
  },
  "luminance": 0.16819
}

Semantic roles & 50–950 ramp

primary
#8A5CBF
secondary
#BDD0A7
accent
#D35498
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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