#8B51DB#8B51DB

#8B51DB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.1% C 0.202 H 299.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8B51DB
RGBrgb(139, 81, 219)
HSLhsl(265, 66%, 59%)
HSVhsv(265, 63%, 86%)
CMYKcmyk(36.5%, 63%, 0%, 14.1%)
CIE-LABlab(47.61, 51.95, -61.95)
CIE-LCHlch(47.61, 80.85, 309.98°)
OKLaboklab(57.08% 0.0986 -0.1762)
OKLCHoklch(57.08% 0.202 299.2)
XYZxyz(26.3729, 16.4880, 68.7972)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51DB #A1DB51
analogous
#515CDB #8B51DB #D051DB
triadic
#8B51DB #DB8B51 #51DB8B
tetradic
#8B51DB #DB515C #A1DB51 #51DBD0
square
#8B51DB #DB515C #A1DB51 #51DBD0
split-complementary
#8B51DB #DBD051 #5CDB51
monochromatic
#4F1E93 #6B29C6 #8B51DB #AD84E5 #CFB6F0

Accessibility & contrast

On white

4.89
#8B51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8B51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51DB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51DB#FFFFFF#000000##FFFFFF
##8B51DB1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#0D70D8
Tritanopia (blue-blind)
#79708F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8b51db;
/* rgb */ color: rgb(139, 81, 219);
/* oklch */ color: oklch(57.1% 0.202 299.2);
Tailwind
colors: {
  custom: {
    50: '#b285e7',
    500: '#8b51db',
    950: '#000000',
  },
}
SCSS
$custom: #8b51db;
$custom-light: #b285e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51db",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 265.217,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5708,
    "c": 0.20194,
    "h": 299.2
  },
  "luminance": 0.16488
}

Semantic roles & 50–950 ramp

primary
#8B51DB
secondary
#C8DFA9
accent
#E93FA1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8B51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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