#8A5BE5#8A5BE5

#8A5BE5 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.1% C 0.200 H 295.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5BE5
RGBrgb(138, 91, 229)
HSLhsl(260, 73%, 63%)
HSVhsv(260, 60%, 90%)
CMYKcmyk(39.7%, 60.3%, 0%, 10.2%)
CIE-LABlab(50.15, 49.00, -63.52)
CIE-LCHlch(50.15, 80.22, 307.65°)
OKLaboklab(59.11% 0.0855 -0.1809)
OKLCHoklch(59.11% 0.2 295.3)
XYZxyz(28.3615, 18.5420, 76.1982)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BE5 #B6E55B
analogous
#5B71E5 #8A5BE5 #CF5BE5
triadic
#8A5BE5 #E58A5B #5BE58A
tetradic
#8A5BE5 #E55B71 #B6E55B #5BE5CF
square
#8A5BE5 #E55B71 #B6E55B #5BE5CF
split-complementary
#8A5BE5 #E5CF5B #71E55B
monochromatic
#4C1BAB #6426DD #8A5BE5 #B090ED #D5C5F6

Accessibility & contrast

On white

4.46
#8A5BE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#8A5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BE5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BE5#FFFFFF#000000##000000
##8A5BE51.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0F75E2
Tritanopia (blue-blind)
#737A97
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5be5;
/* rgb */ color: rgb(138, 91, 229);
/* oklch */ color: oklch(59.1% 0.200 295.3);
Tailwind
colors: {
  custom: {
    50: '#b28bee',
    500: '#8a5be5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5be5;
$custom-light: #b28bee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5be5",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 260.435,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59112,
    "c": 0.20006,
    "h": 295.3
  },
  "luminance": 0.18543
}

Semantic roles & 50–950 ramp

primary
#8A5BE5
secondary
#D6E7B5
accent
#D51192
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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