#8151C3#8151C3

#8151C3 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.172 H 300.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8151C3
RGBrgb(129, 81, 195)
HSLhsl(265, 49%, 54%)
HSVhsv(265, 58%, 76%)
CMYKcmyk(33.8%, 58.5%, 0%, 23.5%)
CIE-LABlab(44.93, 43.63, -52.54)
CIE-LCHlch(44.93, 68.29, 309.71°)
OKLaboklab(54.38% 0.0865 -0.1489)
OKLCHoklch(54.38% 0.172 300.1)
XYZxyz(21.8436, 14.4920, 53.2656)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151C3 #93C351
analogous
#515AC3 #8151C3 #BA51C3
triadic
#8151C3 #C38151 #51C381
tetradic
#8151C3 #C3515A #93C351 #51C3BA
square
#8151C3 #C3515A #93C351 #51C3BA
split-complementary
#8151C3 #C3BA51 #5AC351
monochromatic
#472772 #6337A0 #8151C3 #A27FD3 #C3ACE2

Accessibility & contrast

On white

5.39
#8151C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8151C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151C3
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151C3#FFFFFF#000000##FFFFFF
##8151C31.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166AC7
Deuteranopia (green-blind)
#2E6AC0
Tritanopia (blue-blind)
#736982
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8151c3;
/* rgb */ color: rgb(129, 81, 195);
/* oklch */ color: oklch(54.4% 0.172 300.1);
Tailwind
colors: {
  custom: {
    50: '#aa84d6',
    500: '#8151c3',
    950: '#000000',
  },
}
SCSS
$custom: #8151c3;
$custom-light: #aa84d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8151c3",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 195
  },
  "hsl": {
    "h": 265.263,
    "s": 48.718,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54379,
    "c": 0.17217,
    "h": 300.1
  },
  "luminance": 0.14492
}

Semantic roles & 50–950 ramp

primary
#8151C3
secondary
#BCD0A0
accent
#D8509F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8151C3

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

Preview Lab → · Contrast checker → · Palette generator →

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