#8B5EF7#8B5EF7

#8B5EF7 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 60.9% C 0.218 H 292.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8B5EF7
RGBrgb(139, 94, 247)
HSLhsl(258, 91%, 67%)
HSVhsv(258, 62%, 97%)
CMYKcmyk(43.7%, 61.9%, 0%, 3.1%)
CIE-LABlab(52.07, 52.36, -70.48)
CIE-LCHlch(52.07, 87.80, 306.61°)
OKLaboklab(60.92% 0.0824 -0.2013)
OKLCHoklch(60.92% 0.218 292.3)
XYZxyz(31.4340, 20.2088, 90.2221)
Luminance0.2021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5EF7 #CAF75E
analogous
#5E7EF7 #8B5EF7 #D85EF7
triadic
#8B5EF7 #F78B5E #5EF78B
tetradic
#8B5EF7 #F75E7E #CAF75E #5EF7D8
square
#8B5EF7 #F75E7E #CAF75E #5EF7D8
split-complementary
#8B5EF7 #F7D85E #7EF75E
monochromatic
#450AD0 #6124F4 #8B5EF7 #B598FA #DFD3FD

Accessibility & contrast

On white

4.17
#8B5EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8B5EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5EF7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5EF7#FFFFFF#000000##000000
##8B5EF71.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFC
Deuteranopia (green-blind)
#0079F4
Tritanopia (blue-blind)
#6C81A2
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8b5ef7;
/* rgb */ color: rgb(139, 94, 247);
/* oklch */ color: oklch(60.9% 0.218 292.3);
Tailwind
colors: {
  custom: {
    50: '#b48efb',
    500: '#8b5ef7',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ef7;
$custom-light: #b48efb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ef7",
  "rgb": {
    "r": 139,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 257.647,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.60924,
    "c": 0.21755,
    "h": 292.3
  },
  "luminance": 0.2021
}

Semantic roles & 50–950 ramp

primary
#8B5EF7
secondary
#E2F1C0
accent
#E600A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B5EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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