#8B51AF#8B51AF

#8B51AF is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.151 H 310.8°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8B51AF
RGBrgb(139, 81, 175)
HSLhsl(277, 37%, 50%)
HSVhsv(277, 54%, 69%)
CMYKcmyk(20.6%, 53.7%, 0%, 31.4%)
CIE-LABlab(44.90, 41.33, -40.84)
CIE-LCHlch(44.90, 58.11, 315.34°)
OKLaboklab(54.23% 0.0988 -0.1143)
OKLCHoklch(54.23% 0.151 310.8)
XYZxyz(21.3263, 14.4694, 42.2185)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B51AF #75AF51
analogous
#5C51AF #8B51AF #AF51A4
triadic
#8B51AF #AF8B51 #51AF8B
tetradic
#8B51AF #AF5C51 #75AF51 #51A4AF
square
#8B51AF #AF5C51 #75AF51 #51A4AF
split-complementary
#8B51AF #A4AF51 #51AF5C
monochromatic
#492A5C #6A3D85 #8B51AF #A77BC2 #C3A5D6

Accessibility & contrast

On white

5.39
#8B51AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8B51AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B51AF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B51AF#FFFFFF#000000##FFFFFF
##8B51AF1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3767B2
Deuteranopia (green-blind)
#4A6BAD
Tritanopia (blue-blind)
#876178
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b51af;
/* rgb */ color: rgb(139, 81, 175);
/* oklch */ color: oklch(54.2% 0.151 310.8);
Tailwind
colors: {
  custom: {
    50: '#af84c7',
    500: '#8b51af',
    950: '#000000',
  },
}
SCSS
$custom: #8b51af;
$custom-light: #af84c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b51af",
  "rgb": {
    "r": 139,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 277.021,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54232,
    "c": 0.15111,
    "h": 310.8
  },
  "luminance": 0.14469
}

Semantic roles & 50–950 ramp

primary
#8B51AF
secondary
#A9C399
accent
#CD5B87
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8B51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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