#8A5FE7#8A5FE7

#8A5FE7 is a mid, vivid violet. Relative luminance 0.194; OKLCH L 59.9% C 0.197 H 294.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8A5FE7
RGBrgb(138, 95, 231)
HSLhsl(259, 74%, 64%)
HSVhsv(259, 59%, 91%)
CMYKcmyk(40.3%, 58.9%, 0%, 9.4%)
CIE-LABlab(51.10, 47.35, -63.10)
CIE-LCHlch(51.10, 78.89, 306.88°)
OKLaboklab(59.85% 0.0809 -0.1797)
OKLCHoklch(59.85% 0.197 294.2)
XYZxyz(28.9934, 19.3565, 77.7944)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FE7 #BCE75F
analogous
#5F78E7 #8A5FE7 #CE5FE7
triadic
#8A5FE7 #E78A5F #5FE78A
tetradic
#8A5FE7 #E75F78 #BCE75F #5FE7CE
square
#8A5FE7 #E75F78 #BCE75F #5FE7CE
split-complementary
#8A5FE7 #E7CE5F #78E75F
monochromatic
#4A1BB1 #632ADF #8A5FE7 #B194EF #D8C9F7

Accessibility & contrast

On white

4.31
#8A5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8A5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FE7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FE7#FFFFFF#000000##000000
##8A5FE71.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#1977E4
Tritanopia (blue-blind)
#727D9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5fe7;
/* rgb */ color: rgb(138, 95, 231);
/* oklch */ color: oklch(59.9% 0.197 294.2);
Tailwind
colors: {
  custom: {
    50: '#b28eef',
    500: '#8a5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fe7;
$custom-light: #b28eef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fe7",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 258.971,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59852,
    "c": 0.19703,
    "h": 294.2
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

primary
#8A5FE7
secondary
#DAE9B9
accent
#D60F97
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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