#8A5FE6#8A5FE6

#8A5FE6 is a mid, vivid violet. Relative luminance 0.193; OKLCH L 59.8% C 0.196 H 294.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE6
RGBrgb(138, 95, 230)
HSLhsl(259, 73%, 64%)
HSVhsv(259, 59%, 90%)
CMYKcmyk(40%, 58.7%, 0%, 9.8%)
CIE-LABlab(51.04, 47.09, -62.65)
CIE-LCHlch(51.04, 78.37, 306.93°)
OKLaboklab(59.78% 0.0809 -0.1783)
OKLCHoklch(59.78% 0.196 294.4)
XYZxyz(28.8526, 19.3002, 77.0527)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE6 #BBE65F
analogous
#5F77E6 #8A5FE6 #CD5FE6
triadic
#8A5FE6 #E68A5F #5FE68A
tetradic
#8A5FE6 #E65F77 #BBE65F #5FE6CD
square
#8A5FE6 #E65F77 #BBE65F #5FE6CD
split-complementary
#8A5FE6 #E6CD5F #77E65F
monochromatic
#4A1BAF #632ADE #8A5FE6 #B194EE #D7C9F7

Accessibility & contrast

On white

4.32
#8A5FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8A5FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE6
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE6#FFFFFF#000000##000000
##8A5FE61.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEA
Deuteranopia (green-blind)
#1C77E3
Tritanopia (blue-blind)
#727D99
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5fe6;
/* rgb */ color: rgb(138, 95, 230);
/* oklch */ color: oklch(59.8% 0.196 294.4);
Tailwind
colors: {
  custom: {
    50: '#b28eef',
    500: '#8a5fe6',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe6;
$custom-light: #b28eef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe6",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 230
  },
  "hsl": {
    "h": 259.111,
    "s": 72.973,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59783,
    "c": 0.19582,
    "h": 294.4
  },
  "luminance": 0.19301
}

Semantic roles & 50–950 ramp

primary
#8A5FE6
secondary
#D9E8B9
accent
#D51096
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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