#8A5DEB#8A5DEB

#8A5DEB is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.205 H 293.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A5DEB
RGBrgb(138, 93, 235)
HSLhsl(259, 78%, 64%)
HSVhsv(259, 60%, 92%)
CMYKcmyk(41.3%, 60.4%, 0%, 7.8%)
CIE-LABlab(50.95, 49.50, -65.59)
CIE-LCHlch(50.95, 82.17, 307.04°)
OKLaboklab(59.83% 0.0829 -0.187)
OKLCHoklch(59.83% 0.205 293.9)
XYZxyz(29.3870, 19.2294, 80.7445)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DEB #BEEB5D
analogous
#5D77EB #8A5DEB #D15DEB
triadic
#8A5DEB #EB8A5D #5DEB8A
tetradic
#8A5DEB #EB5D77 #BEEB5D #5DEBD1
square
#8A5DEB #EB5D77 #BEEB5D #5DEBD1
split-complementary
#8A5DEB #EBD15D #77EB5D
monochromatic
#4917B7 #6327E4 #8A5DEB #B193F2 #D9CAF8

Accessibility & contrast

On white

4.33
#8A5DEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8A5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DEB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DEB#FFFFFF#000000##000000
##8A5DEB1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#0077E8
Tritanopia (blue-blind)
#707D9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5deb;
/* rgb */ color: rgb(138, 93, 235);
/* oklch */ color: oklch(59.8% 0.205 293.9);
Tailwind
colors: {
  custom: {
    50: '#b28df2',
    500: '#8a5deb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5deb;
$custom-light: #b28df2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5deb",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 259.014,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.59828,
    "c": 0.20455,
    "h": 293.9
  },
  "luminance": 0.1923
}

Semantic roles & 50–950 ramp

primary
#8A5DEB
secondary
#DBEBB9
accent
#DA0B99
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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