#8D51BA#8D51BA

#8D51BA is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.164 H 308.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8D51BA
RGBrgb(141, 81, 186)
HSLhsl(274, 43%, 52%)
HSVhsv(274, 56%, 73%)
CMYKcmyk(24.2%, 56.5%, 0%, 27.1%)
CIE-LABlab(45.76, 44.40, -45.90)
CIE-LCHlch(45.76, 63.86, 314.05°)
OKLaboklab(55.12% 0.102 -0.129)
OKLCHoklch(55.12% 0.164 308.3)
XYZxyz(22.7881, 15.0931, 48.1576)
Luminance0.1509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51BA #7EBA51
analogous
#5951BA #8D51BA #BA51B2
triadic
#8D51BA #BA8D51 #51BA8D
tetradic
#8D51BA #BA5951 #7EBA51 #51B2BA
square
#8D51BA #BA5951 #7EBA51 #51B2BA
split-complementary
#8D51BA #B2BA51 #51BA59
monochromatic
#4D2968 #6D3A93 #8D51BA #AA7DCB #C6A9DD

Accessibility & contrast

On white

5.23
#8D51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8D51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51BA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51BA#FFFFFF#000000##FFFFFF
##8D51BA1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABD
Deuteranopia (green-blind)
#436DB7
Tritanopia (blue-blind)
#86647E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8d51ba;
/* rgb */ color: rgb(141, 81, 186);
/* oklch */ color: oklch(55.1% 0.164 308.3);
Tailwind
colors: {
  custom: {
    50: '#b184cf',
    500: '#8d51ba',
    950: '#000000',
  },
}
SCSS
$custom: #8d51ba;
$custom-light: #b184cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51ba",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 274.286,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55121,
    "c": 0.16447,
    "h": 308.3
  },
  "luminance": 0.15093
}

Semantic roles & 50–950 ramp

primary
#8D51BA
secondary
#B0CA9D
accent
#D3558B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8D51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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