#8D51AF#8D51AF

#8D51AF is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.152 H 311.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8D51AF
RGBrgb(141, 81, 175)
HSLhsl(278, 37%, 50%)
HSVhsv(278, 54%, 69%)
CMYKcmyk(19.4%, 53.7%, 0%, 31.4%)
CIE-LABlab(45.14, 41.88, -40.44)
CIE-LCHlch(45.14, 58.22, 316.00°)
OKLaboklab(54.46% 0.1013 -0.1131)
OKLCHoklch(54.46% 0.152 311.8)
XYZxyz(21.6634, 14.6432, 42.2343)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51AF #73AF51
analogous
#5E51AF #8D51AF #AF51A2
triadic
#8D51AF #AF8D51 #51AF8D
tetradic
#8D51AF #AF5E51 #73AF51 #51A2AF
square
#8D51AF #AF5E51 #73AF51 #51A2AF
split-complementary
#8D51AF #A2AF51 #51AF5E
monochromatic
#4A2A5C #6B3D85 #8D51AF #A87BC2 #C4A5D6

Accessibility & contrast

On white

5.35
#8D51AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8D51AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51AF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51AF#FFFFFF#000000##FFFFFF
##8D51AF1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3868B2
Deuteranopia (green-blind)
#4B6CAD
Tritanopia (blue-blind)
#896178
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8d51af;
/* rgb */ color: rgb(141, 81, 175);
/* oklch */ color: oklch(54.5% 0.152 311.8);
Tailwind
colors: {
  custom: {
    50: '#b184c7',
    500: '#8d51af',
    950: '#000000',
  },
}
SCSS
$custom: #8d51af;
$custom-light: #b184c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51af",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 278.298,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.54464,
    "c": 0.15187,
    "h": 311.8
  },
  "luminance": 0.14643
}

Semantic roles & 50–950 ramp

primary
#8D51AF
secondary
#A8C399
accent
#CD5B84
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8D51AF

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

Preview Lab → · Contrast checker → · Palette generator →

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