#8D51B2#8D51B2

#8D51B2 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.155 H 310.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8D51B2
RGBrgb(141, 81, 178)
HSLhsl(277, 39%, 51%)
HSVhsv(277, 54%, 70%)
CMYKcmyk(20.8%, 54.5%, 0%, 30.2%)
CIE-LABlab(45.31, 42.56, -41.94)
CIE-LCHlch(45.31, 59.75, 315.42°)
OKLaboklab(54.64% 0.1016 -0.1175)
OKLCHoklch(54.64% 0.155 310.8)
XYZxyz(21.9613, 14.7624, 43.8034)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51B2 #76B251
analogous
#5C51B2 #8D51B2 #B251A6
triadic
#8D51B2 #B28D51 #51B28D
tetradic
#8D51B2 #B25C51 #76B251 #51A6B2
square
#8D51B2 #B25C51 #76B251 #51A6B2
split-complementary
#8D51B2 #A6B251 #51B25C
monochromatic
#4B2A5F #6C3D89 #8D51B2 #A97BC5 #C5A6D8

Accessibility & contrast

On white

5.31
#8D51B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8D51B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51B2
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51B2#FFFFFF#000000##FFFFFF
##8D51B21.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3568B5
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#89627A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8d51b2;
/* rgb */ color: rgb(141, 81, 178);
/* oklch */ color: oklch(54.6% 0.155 310.8);
Tailwind
colors: {
  custom: {
    50: '#b184c9',
    500: '#8d51b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d51b2;
$custom-light: #b184c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51b2",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 277.113,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5464,
    "c": 0.1553,
    "h": 310.8
  },
  "luminance": 0.14762
}

Semantic roles & 50–950 ramp

primary
#8D51B2
secondary
#AAC59A
accent
#CF5986
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8D51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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