#8B51DA#8B51DA

#8B51DA is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.0% C 0.201 H 299.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8B51DA
RGBrgb(139, 81, 218)
HSLhsl(265, 65%, 59%)
HSVhsv(265, 63%, 85%)
CMYKcmyk(36.2%, 62.8%, 0%, 14.5%)
CIE-LABlab(47.54, 51.70, -61.49)
CIE-LCHlch(47.54, 80.33, 310.05°)
OKLaboklab(57.01% 0.0987 -0.1749)
OKLCHoklch(57.01% 0.201 299.4)
XYZxyz(26.2417, 16.4355, 68.1059)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51DA #A0DA51
analogous
#515BDA #8B51DA #CF51DA
triadic
#8B51DA #DA8B51 #51DA8B
tetradic
#8B51DA #DA515B #A0DA51 #51DACF
square
#8B51DA #DA515B #A0DA51 #51DACF
split-complementary
#8B51DA #DACF51 #5BDA51
monochromatic
#501F92 #6B2AC4 #8B51DA #AD83E5 #CEB6EF

Accessibility & contrast

On white

4.90
#8B51DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8B51DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51DA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51DA#FFFFFF#000000##FFFFFF
##8B51DA1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#1170D7
Tritanopia (blue-blind)
#796F8E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8b51da;
/* rgb */ color: rgb(139, 81, 218);
/* oklch */ color: oklch(57.0% 0.201 299.4);
Tailwind
colors: {
  custom: {
    50: '#b285e6',
    500: '#8b51da',
    950: '#000000',
  },
}
SCSS
$custom: #8b51da;
$custom-light: #b285e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51da",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 218
  },
  "hsl": {
    "h": 265.401,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.57009,
    "c": 0.20081,
    "h": 299.4
  },
  "luminance": 0.16436
}

Semantic roles & 50–950 ramp

primary
#8B51DA
secondary
#C8DEA8
accent
#E840A1
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8B51DA

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

Preview Lab → · Contrast checker → · Palette generator →

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