#8A5BE1#8A5BE1

#8A5BE1 is a mid, vivid violet. Relative luminance 0.183; OKLCH L 58.8% C 0.195 H 296.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#8A5BE1
RGBrgb(138, 91, 225)
HSLhsl(261, 69%, 62%)
HSVhsv(261, 60%, 88%)
CMYKcmyk(38.7%, 59.6%, 0%, 11.8%)
CIE-LABlab(49.88, 47.96, -61.69)
CIE-LCHlch(49.88, 78.13, 307.86°)
OKLaboklab(58.84% 0.0856 -0.1755)
OKLCHoklch(58.84% 0.195 296)
XYZxyz(27.8094, 18.3212, 73.2907)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BE1 #B2E15B
analogous
#5B6FE1 #8A5BE1 #CD5BE1
triadic
#8A5BE1 #E18A5B #5BE18A
tetradic
#8A5BE1 #E15B6F #B2E15B #5BE1CD
square
#8A5BE1 #E15B6F #B2E15B #5BE1CD
split-complementary
#8A5BE1 #E1CD5B #6FE15B
monochromatic
#4D1EA4 #6527D7 #8A5BE1 #AF8FEA #D4C2F4

Accessibility & contrast

On white

4.50
#8A5BE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#8A5BE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BE1
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BE1#FFFFFF#000000##000000
##8A5BE11.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#1C75DE
Tritanopia (blue-blind)
#757895
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5be1;
/* rgb */ color: rgb(138, 91, 225);
/* oklch */ color: oklch(58.8% 0.195 296.0);
Tailwind
colors: {
  custom: {
    50: '#b18beb',
    500: '#8a5be1',
    950: '#000000',
  },
}
SCSS
$custom: #8a5be1;
$custom-light: #b18beb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5be1",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 225
  },
  "hsl": {
    "h": 261.045,
    "s": 69.072,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58836,
    "c": 0.19528,
    "h": 296
  },
  "luminance": 0.18322
}

Semantic roles & 50–950 ramp

primary
#8A5BE1
secondary
#D3E5B3
accent
#D1148F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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