#8A5BE6#8A5BE6

#8A5BE6 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.2% C 0.201 H 295.1°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#8A5BE6
RGBrgb(138, 91, 230)
HSLhsl(260, 74%, 63%)
HSVhsv(260, 60%, 90%)
CMYKcmyk(40%, 60.4%, 0%, 9.8%)
CIE-LABlab(50.21, 49.26, -63.98)
CIE-LCHlch(50.21, 80.75, 307.60°)
OKLaboklab(59.18% 0.0854 -0.1822)
OKLCHoklch(59.18% 0.201 295.1)
XYZxyz(28.5015, 18.5980, 76.9357)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BE6 #B7E65B
analogous
#5B71E6 #8A5BE6 #D05BE6
triadic
#8A5BE6 #E68A5B #5BE68A
tetradic
#8A5BE6 #E65B71 #B7E65B #5BE6D0
square
#8A5BE6 #E65B71 #B7E65B #5BE6D0
split-complementary
#8A5BE6 #E6D05B #71E65B
monochromatic
#4C1AAC #6426DE #8A5BE6 #B090EE #D6C5F6

Accessibility & contrast

On white

4.45
#8A5BE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#8A5BE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BE6
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BE6#FFFFFF#000000##000000
##8A5BE61.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#0A75E3
Tritanopia (blue-blind)
#727A98
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5be6;
/* rgb */ color: rgb(138, 91, 230);
/* oklch */ color: oklch(59.2% 0.201 295.1);
Tailwind
colors: {
  custom: {
    50: '#b28bef',
    500: '#8a5be6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5be6;
$custom-light: #b28bef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5be6",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 230
  },
  "hsl": {
    "h": 260.288,
    "s": 73.545,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59182,
    "c": 0.20125,
    "h": 295.1
  },
  "luminance": 0.18599
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5BE6

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

Preview Lab → · Contrast checker → · Palette generator →

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