#8151BE#8151BE

#8151BE is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.0% C 0.166 H 301.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8151BE
RGBrgb(129, 81, 190)
HSLhsl(266, 46%, 53%)
HSVhsv(266, 57%, 75%)
CMYKcmyk(32.1%, 57.4%, 0%, 25.5%)
CIE-LABlab(44.62, 42.37, -50.13)
CIE-LCHlch(44.62, 65.64, 310.20°)
OKLaboklab(54.05% 0.0865 -0.1418)
OKLCHoklch(54.05% 0.166 301.4)
XYZxyz(21.2878, 14.2696, 50.3380)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151BE #8EBE51
analogous
#5157BE #8151BE #B751BE
triadic
#8151BE #BE8151 #51BE81
tetradic
#8151BE #BE5157 #8EBE51 #51BEB7
square
#8151BE #BE5157 #8EBE51 #51BEB7
split-complementary
#8151BE #BEB751 #57BE51
monochromatic
#46286C #633999 #8151BE #A17ECF #C2AADF

Accessibility & contrast

On white

5.45
#8151BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8151BE
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151BE#FFFFFF#000000##FFFFFF
##8151BE1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2069C2
Deuteranopia (green-blind)
#3469BB
Tritanopia (blue-blind)
#756780
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8151be;
/* rgb */ color: rgb(129, 81, 190);
/* oklch */ color: oklch(54.0% 0.166 301.4);
Tailwind
colors: {
  custom: {
    50: '#a984d2',
    500: '#8151be',
    950: '#000000',
  },
}
SCSS
$custom: #8151be;
$custom-light: #a984d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8151be",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 266.422,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54049,
    "c": 0.16611,
    "h": 301.4
  },
  "luminance": 0.1427
}

Semantic roles & 50–950 ramp

primary
#8151BE
secondary
#B8CD9E
accent
#D5539C
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8151BE

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

Preview Lab → · Contrast checker → · Palette generator →

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