#8A5BEF#8A5BEF

#8A5BEF is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.8% C 0.212 H 293.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#8A5BEF
RGBrgb(138, 91, 239)
HSLhsl(259, 82%, 65%)
HSVhsv(259, 62%, 94%)
CMYKcmyk(42.3%, 61.9%, 0%, 6.3%)
CIE-LABlab(50.82, 51.64, -68.05)
CIE-LCHlch(50.82, 85.42, 307.19°)
OKLaboklab(59.82% 0.0849 -0.1942)
OKLCHoklch(59.82% 0.212 293.6)
XYZxyz(29.7981, 19.1166, 83.7645)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BEF #C0EF5B
analogous
#5B76EF #8A5BEF #D45BEF
triadic
#8A5BEF #EF8A5B #5BEF8A
tetradic
#8A5BEF #EF5B76 #C0EF5B #5BEFD4
square
#8A5BEF #EF5B76 #C0EF5B #5BEFD4
split-complementary
#8A5BEF #EFD45B #76EF5B
monochromatic
#4912BD #6223EA #8A5BEF #B293F4 #DACBFA

Accessibility & contrast

On white

4.35
#8A5BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#8A5BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BEF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BEF#FFFFFF#000000##000000
##8A5BEF1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF4
Deuteranopia (green-blind)
#0076EC
Tritanopia (blue-blind)
#6E7D9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5bef;
/* rgb */ color: rgb(138, 91, 239);
/* oklch */ color: oklch(59.8% 0.212 293.6);
Tailwind
colors: {
  custom: {
    50: '#b38cf5',
    500: '#8a5bef',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bef;
$custom-light: #b38cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bef",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 259.054,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59819,
    "c": 0.21193,
    "h": 293.6
  },
  "luminance": 0.19117
}

Semantic roles & 50–950 ramp

primary
#8A5BEF
secondary
#DCECBA
accent
#DF079A
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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