#8A5BF2#8A5BF2

#8A5BF2 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 60.0% C 0.215 H 293.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A5BF2
RGBrgb(138, 91, 242)
HSLhsl(259, 85%, 65%)
HSVhsv(259, 62%, 95%)
CMYKcmyk(43%, 62.4%, 0%, 5.1%)
CIE-LABlab(51.03, 52.43, -69.39)
CIE-LCHlch(51.03, 86.97, 307.07°)
OKLaboklab(60.04% 0.0846 -0.1981)
OKLCHoklch(60.04% 0.215 293.1)
XYZxyz(30.2450, 19.2954, 86.1180)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BF2 #C3F25B
analogous
#5B78F2 #8A5BF2 #D55BF2
triadic
#8A5BF2 #F28A5B #5BF28A
tetradic
#8A5BF2 #F25B78 #C3F25B #5BF2D5
square
#8A5BF2 #F25B78 #C3F25B #5BF2D5
split-complementary
#8A5BF2 #F2D55B #78F25B
monochromatic
#470FC3 #6222EE #8A5BF2 #B294F6 #DBCCFB

Accessibility & contrast

On white

4.32
#8A5BF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A5BF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BF2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BF2#FFFFFF#000000##000000
##8A5BF21.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0077EF
Tritanopia (blue-blind)
#6D7E9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5bf2;
/* rgb */ color: rgb(138, 91, 242);
/* oklch */ color: oklch(60.0% 0.215 293.1);
Tailwind
colors: {
  custom: {
    50: '#b38cf7',
    500: '#8a5bf2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bf2;
$custom-light: #b38cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bf2",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 242
  },
  "hsl": {
    "h": 258.675,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.60035,
    "c": 0.21546,
    "h": 293.1
  },
  "luminance": 0.19296
}

Semantic roles & 50–950 ramp

primary
#8A5BF2
secondary
#DEEEBB
accent
#E2049D
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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