#8A5BC7#8A5BC7

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

Color values

HEX#8A5BC7
RGBrgb(138, 91, 199)
HSLhsl(266, 49%, 57%)
HSVhsv(266, 54%, 78%)
CMYKcmyk(30.7%, 54.3%, 0%, 22%)
CIE-LABlab(48.27, 41.30, -49.44)
CIE-LCHlch(48.27, 64.42, 309.88°)
OKLaboklab(57.14% 0.0855 -0.1395)
OKLCHoklch(57.14% 0.164 301.5)
XYZxyz(24.5287, 17.0089, 56.0125)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BC7 #98C75B
analogous
#5B62C7 #8A5BC7 #C05BC7
triadic
#8A5BC7 #C78A5B #5BC78A
tetradic
#8A5BC7 #C75B62 #98C75B #5BC7C0
square
#8A5BC7 #C75B62 #98C75B #5BC7C0
split-complementary
#8A5BC7 #C7C05B #62C75B
monochromatic
#4E2B7D #6B3AAB #8A5BC7 #AB89D7 #CBB6E6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5BC7#FFFFFF#000000##FFFFFF
##8A5BC71.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)
#3272CB
Deuteranopia (green-blind)
#4172C4
Tritanopia (blue-blind)
#7E7088
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5bc7;
/* rgb */ color: rgb(138, 91, 199);
/* oklch */ color: oklch(57.1% 0.164 301.5);
Tailwind
colors: {
  custom: {
    50: '#af8bd8',
    500: '#8a5bc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bc7;
$custom-light: #af8bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bc7",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 199
  },
  "hsl": {
    "h": 266.111,
    "s": 49.091,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57136,
    "c": 0.16368,
    "h": 301.5
  },
  "luminance": 0.17009
}

Semantic roles & 50–950 ramp

primary
#8A5BC7
secondary
#C2D5A9
accent
#D94F9D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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