#8A5FE5#8A5FE5

#8A5FE5 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.7% C 0.195 H 294.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE5
RGBrgb(138, 95, 229)
HSLhsl(259, 72%, 64%)
HSVhsv(259, 59%, 90%)
CMYKcmyk(39.7%, 58.5%, 0%, 10.2%)
CIE-LABlab(50.97, 46.82, -62.19)
CIE-LCHlch(50.97, 77.84, 306.98°)
OKLaboklab(59.72% 0.0809 -0.177)
OKLCHoklch(59.72% 0.195 294.6)
XYZxyz(28.7126, 19.2442, 76.3153)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE5 #BAE55F
analogous
#5F77E5 #8A5FE5 #CD5FE5
triadic
#8A5FE5 #E58A5F #5FE58A
tetradic
#8A5FE5 #E55F77 #BAE55F #5FE5CD
square
#8A5FE5 #E55F77 #BAE55F #5FE5CD
split-complementary
#8A5FE5 #E5CD5F #77E55F
monochromatic
#4B1CAD #642ADC #8A5FE5 #B094EE #D7C8F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A5FE5#FFFFFF#000000##000000
##8A5FE51.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)
#007BE9
Deuteranopia (green-blind)
#1E77E2
Tritanopia (blue-blind)
#737C99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5fe5;
/* rgb */ color: rgb(138, 95, 229);
/* oklch */ color: oklch(59.7% 0.195 294.6);
Tailwind
colors: {
  custom: {
    50: '#b28eee',
    500: '#8a5fe5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe5;
$custom-light: #b28eee;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe5",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 259.254,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59715,
    "c": 0.1946,
    "h": 294.6
  },
  "luminance": 0.19245
}

Semantic roles & 50–950 ramp

primary
#8A5FE5
secondary
#D8E8B8
accent
#D41196
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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