#8A5BE7#8A5BE7

#8A5BE7 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.202 H 294.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8A5BE7
RGBrgb(138, 91, 231)
HSLhsl(260, 74%, 63%)
HSVhsv(260, 61%, 91%)
CMYKcmyk(40.3%, 60.6%, 0%, 9.4%)
CIE-LABlab(50.28, 49.53, -64.43)
CIE-LCHlch(50.28, 81.27, 307.55°)
OKLaboklab(59.25% 0.0854 -0.1836)
OKLCHoklch(59.25% 0.202 294.9)
XYZxyz(28.6423, 18.6543, 77.6774)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BE7 #B8E75B
analogous
#5B72E7 #8A5BE7 #D05BE7
triadic
#8A5BE7 #E78A5B #5BE78A
tetradic
#8A5BE7 #E75B72 #B8E75B #5BE7D0
square
#8A5BE7 #E75B72 #B8E75B #5BE7D0
split-complementary
#8A5BE7 #E7D05B #72E75B
monochromatic
#4B19AE #6426DF #8A5BE7 #B090EF #D6C6F7

Accessibility & contrast

On white

4.44
#8A5BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#8A5BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BE7
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BE7#FFFFFF#000000##000000
##8A5BE71.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EB
Deuteranopia (green-blind)
#0475E4
Tritanopia (blue-blind)
#727A99
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #8a5be7;
/* rgb */ color: rgb(138, 91, 231);
/* oklch */ color: oklch(59.3% 0.202 294.9);
Tailwind
colors: {
  custom: {
    50: '#b28bef',
    500: '#8a5be7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5be7;
$custom-light: #b28bef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5be7",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 260.143,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59252,
    "c": 0.20245,
    "h": 294.9
  },
  "luminance": 0.18655
}

Semantic roles & 50–950 ramp

primary
#8A5BE7
secondary
#D7E8B6
accent
#D70F94
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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