#8A5BF6#8A5BF6

#8A5BF6 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.3% C 0.220 H 292.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#8A5BF6
RGBrgb(138, 91, 246)
HSLhsl(258, 90%, 66%)
HSVhsv(258, 63%, 96%)
CMYKcmyk(43.9%, 63%, 0%, 3.5%)
CIE-LABlab(51.31, 53.49, -71.17)
CIE-LCHlch(51.31, 89.03, 306.93°)
OKLaboklab(60.33% 0.0843 -0.2034)
OKLCHoklch(60.33% 0.22 292.5)
XYZxyz(30.8523, 19.5383, 89.3166)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BF6 #C7F65B
analogous
#5B79F6 #8A5BF6 #D85BF6
triadic
#8A5BF6 #F68A5B #5BF68A
tetradic
#8A5BF6 #F65B79 #C7F65B #5BF6D8
square
#8A5BF6 #F65B79 #C7F65B #5BF6D8
split-complementary
#8A5BF6 #F6D85B #79F65B
monochromatic
#450BCB #6121F3 #8A5BF6 #B395F9 #DDCFFC

Accessibility & contrast

On white

4.28
#8A5BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#8A5BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BF6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BF6#FFFFFF#000000##000000
##8A5BF61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0077F3
Tritanopia (blue-blind)
#6B7FA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5bf6;
/* rgb */ color: rgb(138, 91, 246);
/* oklch */ color: oklch(60.3% 0.220 292.5);
Tailwind
colors: {
  custom: {
    50: '#b38cfa',
    500: '#8a5bf6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bf6;
$custom-light: #b38cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bf6",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 246
  },
  "hsl": {
    "h": 258.194,
    "s": 89.595,
    "l": 66.078
  },
  "oklch": {
    "l": 0.60327,
    "c": 0.22015,
    "h": 292.5
  },
  "luminance": 0.19539
}

Semantic roles & 50–950 ramp

primary
#8A5BF6
secondary
#E0F0BD
accent
#E600A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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