#8151BD#8151BD

#8151BD is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.0% C 0.165 H 301.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8151BD
RGBrgb(129, 81, 189)
HSLhsl(267, 45%, 53%)
HSVhsv(267, 57%, 74%)
CMYKcmyk(31.7%, 57.1%, 0%, 25.9%)
CIE-LABlab(44.56, 42.11, -49.65)
CIE-LCHlch(44.56, 65.11, 310.30°)
OKLaboklab(53.98% 0.0864 -0.1404)
OKLCHoklch(53.98% 0.165 301.6)
XYZxyz(21.1789, 14.2260, 49.7644)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151BD #8DBD51
analogous
#5157BD #8151BD #B751BD
triadic
#8151BD #BD8151 #51BD81
tetradic
#8151BD #BD5157 #8DBD51 #51BDB7
square
#8151BD #BD5157 #8DBD51 #51BDB7
split-complementary
#8151BD #BDB751 #57BD51
monochromatic
#46296B #633997 #8151BD #A17DCE #C1AADF

Accessibility & contrast

On white

5.46
#8151BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8151BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151BD
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151BD#FFFFFF#000000##FFFFFF
##8151BD1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2269C1
Deuteranopia (green-blind)
#3569BB
Tritanopia (blue-blind)
#75677F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8151bd;
/* rgb */ color: rgb(129, 81, 189);
/* oklch */ color: oklch(54.0% 0.165 301.6);
Tailwind
colors: {
  custom: {
    50: '#a984d1',
    500: '#8151bd',
    950: '#000000',
  },
}
SCSS
$custom: #8151bd;
$custom-light: #a984d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8151bd",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 266.667,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53983,
    "c": 0.16489,
    "h": 301.6
  },
  "luminance": 0.14226
}

Semantic roles & 50–950 ramp

primary
#8151BD
secondary
#B7CC9E
accent
#D5539B
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8151BD

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

Preview Lab → · Contrast checker → · Palette generator →

#8151BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva