#8A5BEE#8A5BEE

#8A5BEE is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.7% C 0.211 H 293.8°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#8A5BEE
RGBrgb(138, 91, 238)
HSLhsl(259, 81%, 65%)
HSVhsv(259, 62%, 93%)
CMYKcmyk(42%, 61.8%, 0%, 6.7%)
CIE-LABlab(50.75, 51.37, -67.60)
CIE-LCHlch(50.75, 84.90, 307.23°)
OKLaboklab(59.75% 0.0849 -0.1929)
OKLCHoklch(59.75% 0.211 293.8)
XYZxyz(29.6508, 19.0577, 82.9886)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BEE #BFEE5B
analogous
#5B76EE #8A5BEE #D45BEE
triadic
#8A5BEE #EE8A5B #5BEE8A
tetradic
#8A5BEE #EE5B76 #BFEE5B #5BEED4
square
#8A5BEE #EE5B76 #BFEE5B #5BEED4
split-complementary
#8A5BEE #EED45B #76EE5B
monochromatic
#4913BB #6224E8 #8A5BEE #B292F4 #D9CAF9

Accessibility & contrast

On white

4.36
#8A5BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#8A5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5BEE
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BEE#FFFFFF#000000##000000
##8A5BEE1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF3
Deuteranopia (green-blind)
#0076EB
Tritanopia (blue-blind)
#6F7D9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5bee;
/* rgb */ color: rgb(138, 91, 238);
/* oklch */ color: oklch(59.7% 0.211 293.8);
Tailwind
colors: {
  custom: {
    50: '#b38cf4',
    500: '#8a5bee',
    950: '#000000',
  },
}
SCSS
$custom: #8a5bee;
$custom-light: #b38cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5bee",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 259.184,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59747,
    "c": 0.21075,
    "h": 293.8
  },
  "luminance": 0.19058
}

Semantic roles & 50–950 ramp

primary
#8A5BEE
secondary
#DCECB9
accent
#DE0899
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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