#8B5FE7#8B5FE7

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

Color values

HEX#8B5FE7
RGBrgb(139, 95, 231)
HSLhsl(259, 74%, 64%)
HSVhsv(259, 59%, 91%)
CMYKcmyk(39.8%, 58.9%, 0%, 9.4%)
CIE-LABlab(51.20, 47.57, -62.94)
CIE-LCHlch(51.20, 78.89, 307.08°)
OKLaboklab(59.95% 0.0822 -0.1792)
OKLCHoklch(59.95% 0.197 294.6)
XYZxyz(29.1597, 19.4422, 77.8022)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5FE7 #BBE75F
analogous
#5F77E7 #8B5FE7 #CF5FE7
triadic
#8B5FE7 #E78B5F #5FE78B
tetradic
#8B5FE7 #E75F77 #BBE75F #5FE7CF
square
#8B5FE7 #E75F77 #BBE75F #5FE7CF
split-complementary
#8B5FE7 #E7CF5F #77E75F
monochromatic
#4B1BB1 #642ADF #8B5FE7 #B294EF #D8C9F7

Accessibility & contrast

On white

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

On black

4.89
#8B5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5FE7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5FE7#FFFFFF#000000##000000
##8B5FE71.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#1B78E4
Tritanopia (blue-blind)
#737D9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8b5fe7;
/* rgb */ color: rgb(139, 95, 231);
/* oklch */ color: oklch(59.9% 0.197 294.6);
Tailwind
colors: {
  custom: {
    50: '#b28eef',
    500: '#8b5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #8b5fe7;
$custom-light: #b28eef;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5fe7",
  "rgb": {
    "r": 139,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 259.412,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59947,
    "c": 0.1971,
    "h": 294.6
  },
  "luminance": 0.19443
}

Semantic roles & 50–950 ramp

primary
#8B5FE7
secondary
#D9E9B9
accent
#D60F96
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8B5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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