#8A5BE4#8A5BE4

#8A5BE4 is a mid, vivid violet. Relative luminance 0.185; OKLCH L 59.0% C 0.199 H 295.5°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5BE4
RGBrgb(138, 91, 228)
HSLhsl(261, 72%, 63%)
HSVhsv(261, 60%, 89%)
CMYKcmyk(39.5%, 60.1%, 0%, 10.6%)
CIE-LABlab(50.08, 48.74, -63.06)
CIE-LCHlch(50.08, 79.70, 307.70°)
OKLaboklab(59.04% 0.0855 -0.1795)
OKLCHoklch(59.04% 0.199 295.5)
XYZxyz(28.2222, 18.4863, 75.4650)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BE4 #B5E45B
analogous
#5B70E4 #8A5BE4 #CF5BE4
triadic
#8A5BE4 #E48A5B #5BE48A
tetradic
#8A5BE4 #E45B70 #B5E45B #5BE4CF
square
#8A5BE4 #E45B70 #B5E45B #5BE4CF
split-complementary
#8A5BE4 #E4CF5B #70E45B
monochromatic
#4C1CA9 #6526DB #8A5BE4 #AF90ED #D5C4F5

Accessibility & contrast

On white

4.47
#8A5BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#8A5BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BE4
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BE4#FFFFFF#000000##000000
##8A5BE41.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E8
Deuteranopia (green-blind)
#1375E1
Tritanopia (blue-blind)
#737997
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5be4;
/* rgb */ color: rgb(138, 91, 228);
/* oklch */ color: oklch(59.0% 0.199 295.5);
Tailwind
colors: {
  custom: {
    50: '#b28bed',
    500: '#8a5be4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5be4;
$custom-light: #b28bed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5be4",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 228
  },
  "hsl": {
    "h": 260.584,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59043,
    "c": 0.19887,
    "h": 295.5
  },
  "luminance": 0.18487
}

Semantic roles & 50–950 ramp

primary
#8A5BE4
secondary
#D5E6B4
accent
#D41291
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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