#8B5EF2#8B5EF2

#8B5EF2 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.6% C 0.212 H 293.0°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8B5EF2
RGBrgb(139, 94, 242)
HSLhsl(258, 85%, 66%)
HSVhsv(258, 61%, 95%)
CMYKcmyk(42.6%, 61.2%, 0%, 5.1%)
CIE-LABlab(51.73, 51.02, -68.25)
CIE-LCHlch(51.73, 85.22, 306.78°)
OKLaboklab(60.57% 0.0827 -0.1948)
OKLCHoklch(60.57% 0.212 293)
XYZxyz(30.6728, 19.9043, 86.2130)
Luminance0.1991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B5EF2 #C5F25E
analogous
#5E7BF2 #8B5EF2 #D55EF2
triadic
#8B5EF2 #F28B5E #5EF28B
tetradic
#8B5EF2 #F25E7B #C5F25E #5EF2D5
square
#8B5EF2 #F25E7B #C5F25E #5EF2D5
split-complementary
#8B5EF2 #F2D55E #7BF25E
monochromatic
#4710C6 #6225ED #8B5EF2 #B497F7 #DDCFFB

Accessibility & contrast

On white

4.22
#8B5EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8B5EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B5EF2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B5EF2#FFFFFF#000000##000000
##8B5EF21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF7
Deuteranopia (green-blind)
#0079EF
Tritanopia (blue-blind)
#6E809F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8b5ef2;
/* rgb */ color: rgb(139, 94, 242);
/* oklch */ color: oklch(60.6% 0.212 293.0);
Tailwind
colors: {
  custom: {
    50: '#b38ef7',
    500: '#8b5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #8b5ef2;
$custom-light: #b38ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b5ef2",
  "rgb": {
    "r": 139,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 258.243,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.60565,
    "c": 0.21162,
    "h": 293
  },
  "luminance": 0.19905
}

Semantic roles & 50–950 ramp

primary
#8B5EF2
secondary
#DFEEBD
accent
#E2049E
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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