#8151D7#8151D7

#8151D7 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.8% C 0.196 H 295.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8151D7
RGBrgb(129, 81, 215)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 62%, 84%)
CMYKcmyk(40%, 62.3%, 0%, 15.7%)
CIE-LABlab(46.25, 48.82, -61.91)
CIE-LCHlch(46.25, 78.84, 308.26°)
OKLaboklab(55.77% 0.0856 -0.1764)
OKLCHoklch(55.77% 0.196 295.9)
XYZxyz(24.2582, 15.4578, 65.9824)
Luminance0.1546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D7 #A7D751
analogous
#5164D7 #8151D7 #C451D7
triadic
#8151D7 #D78151 #51D781
tetradic
#8151D7 #D75164 #A7D751 #51D7C4
square
#8151D7 #D75164 #A7D751 #51D7C4
split-complementary
#8151D7 #D7C451 #64D751
monochromatic
#47208D #612CBF #8151D7 #A583E2 #C9B5EE

Accessibility & contrast

On white

5.13
#8151D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8151D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D7#FFFFFF#000000##FFFFFF
##8151D71.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#006CD4
Tritanopia (blue-blind)
#6B6F8D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8151d7;
/* rgb */ color: rgb(129, 81, 215);
/* oklch */ color: oklch(55.8% 0.196 295.9);
Tailwind
colors: {
  custom: {
    50: '#ab84e4',
    500: '#8151d7',
    950: '#000000',
  },
}
SCSS
$custom: #8151d7;
$custom-light: #ab84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d7",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 261.493,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55766,
    "c": 0.19611,
    "h": 295.9
  },
  "luminance": 0.15458
}

Semantic roles & 50–950 ramp

primary
#8151D7
secondary
#C9DDA7
accent
#E642AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8151D7

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

Preview Lab → · Contrast checker → · Palette generator →

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