#8A5EEB#8A5EEB

#8A5EEB is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.0% C 0.203 H 293.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A5EEB
RGBrgb(138, 94, 235)
HSLhsl(259, 78%, 65%)
HSVhsv(259, 60%, 92%)
CMYKcmyk(41.3%, 60%, 0%, 7.8%)
CIE-LABlab(51.16, 48.96, -65.26)
CIE-LCHlch(51.16, 81.58, 306.88°)
OKLaboklab(59.98% 0.0818 -0.186)
OKLCHoklch(59.98% 0.203 293.7)
XYZxyz(29.4753, 19.4061, 80.7739)
Luminance0.1941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EEB #BFEB5E
analogous
#5E79EB #8A5EEB #D05EEB
triadic
#8A5EEB #EB8A5E #5EEB8A
tetradic
#8A5EEB #EB5E79 #BFEB5E #5EEBD0
square
#8A5EEB #EB5E79 #BFEB5E #5EEBD0
split-complementary
#8A5EEB #EBD05E #79EB5E
monochromatic
#4917B8 #6228E4 #8A5EEB #B294F2 #D9CBF9

Accessibility & contrast

On white

4.30
#8A5EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#8A5EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EEB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EEB#FFFFFF#000000##000000
##8A5EEB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0177E8
Tritanopia (blue-blind)
#707E9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5eeb;
/* rgb */ color: rgb(138, 94, 235);
/* oklch */ color: oklch(60.0% 0.203 293.7);
Tailwind
colors: {
  custom: {
    50: '#b28df2',
    500: '#8a5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eeb;
$custom-light: #b28df2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eeb",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 258.723,
    "s": 77.901,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59977,
    "c": 0.20321,
    "h": 293.7
  },
  "luminance": 0.19407
}

Semantic roles & 50–950 ramp

primary
#8A5EEB
secondary
#DCEBBA
accent
#DA0B9A
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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