#8B51CD#8B51CD

#8B51CD is a mid, vivid violet. Relative luminance 0.158; OKLCH L 56.1% C 0.186 H 302.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8B51CD
RGBrgb(139, 81, 205)
HSLhsl(268, 55%, 56%)
HSVhsv(268, 60%, 80%)
CMYKcmyk(32.2%, 60.5%, 0%, 19.6%)
CIE-LABlab(46.69, 48.47, -55.43)
CIE-LCHlch(46.69, 73.63, 311.17°)
OKLaboklab(56.12% 0.0994 -0.1571)
OKLCHoklch(56.12% 0.186 302.3)
XYZxyz(24.6068, 15.7816, 59.4956)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51CD #93CD51
analogous
#5155CD #8B51CD #C951CD
triadic
#8B51CD #CD8B51 #51CD8B
tetradic
#8B51CD #CD5155 #93CD51 #51CDC9
square
#8B51CD #CD5155 #93CD51 #51CDC9
split-complementary
#8B51CD #CDC951 #55CD51
monochromatic
#4F257F #6C32AF #8B51CD #AB81DB #CAB0E8

Accessibility & contrast

On white

5.05
#8B51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8B51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51CD
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51CD#FFFFFF#000000##FFFFFF
##8B51CD1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#036ED1
Deuteranopia (green-blind)
#2D6ECA
Tritanopia (blue-blind)
#7E6B87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8b51cd;
/* rgb */ color: rgb(139, 81, 205);
/* oklch */ color: oklch(56.1% 0.186 302.3);
Tailwind
colors: {
  custom: {
    50: '#b185dd',
    500: '#8b51cd',
    950: '#000000',
  },
}
SCSS
$custom: #8b51cd;
$custom-light: #b185dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51cd",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 268.065,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56117,
    "c": 0.18587,
    "h": 302.3
  },
  "luminance": 0.15782
}

Semantic roles & 50–950 ramp

primary
#8B51CD
secondary
#BFD7A3
accent
#DF4999
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8B51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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