#8A5BF8#8A5BF8

#8A5BF8 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 60.5% C 0.222 H 292.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5BF8
RGBrgb(138, 91, 248)
HSLhsl(258, 92%, 66%)
HSVhsv(258, 63%, 97%)
CMYKcmyk(44.4%, 63.3%, 0%, 2.7%)
CIE-LABlab(51.45, 54.02, -72.05)
CIE-LCHlch(51.45, 90.06, 306.86°)
OKLaboklab(60.47% 0.0841 -0.206)
OKLCHoklch(60.47% 0.222 292.2)
XYZxyz(31.1609, 19.6618, 90.9420)
Luminance0.1966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BF8 #C9F85B
analogous
#5B7BF8 #8A5BF8 #D95BF8
triadic
#8A5BF8 #F88A5B #5BF88A
tetradic
#8A5BF8 #F85B7B #C9F85B #5BF8D9
square
#8A5BF8 #F85B7B #C9F85B #5BF8D9
split-complementary
#8A5BF8 #F8D95B #7BF85B
monochromatic
#4409D0 #6020F5 #8A5BF8 #B496FB #DED0FD

Accessibility & contrast

On white

4.26
#8A5BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A5BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BF8
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BF8#FFFFFF#000000##000000
##8A5BF81.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0077F5
Tritanopia (blue-blind)
#6A80A1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5bf8;
/* rgb */ color: rgb(138, 91, 248);
/* oklch */ color: oklch(60.5% 0.222 292.2);
Tailwind
colors: {
  custom: {
    50: '#b48cfc',
    500: '#8a5bf8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bf8;
$custom-light: #b48cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bf8",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 248
  },
  "hsl": {
    "h": 257.962,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60473,
    "c": 0.22248,
    "h": 292.2
  },
  "luminance": 0.19663
}

Semantic roles & 50–950 ramp

primary
#8A5BF8
secondary
#E2F1BE
accent
#E600A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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