#8151D8#8151D8

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

Color values

HEX#8151D8
RGBrgb(129, 81, 216)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 63%, 85%)
CMYKcmyk(40.3%, 62.5%, 0%, 15.3%)
CIE-LABlab(46.32, 49.08, -62.37)
CIE-LCHlch(46.32, 79.37, 308.20°)
OKLaboklab(55.84% 0.0855 -0.1778)
OKLCHoklch(55.84% 0.197 295.7)
XYZxyz(24.3871, 15.5093, 66.6612)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D8 #A8D851
analogous
#5164D8 #8151D8 #C451D8
triadic
#8151D8 #D88151 #51D881
tetradic
#8151D8 #D85164 #A8D851 #51D8C4
square
#8151D8 #D85164 #A8D851 #51D8C4
split-complementary
#8151D8 #D8C451 #64D851
monochromatic
#47208F #602BC1 #8151D8 #A583E3 #C9B5EE

Accessibility & contrast

On white

5.12
#8151D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8151D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D8#FFFFFF#000000##FFFFFF
##8151D81.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#006CD5
Tritanopia (blue-blind)
#6B708D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8151d8;
/* rgb */ color: rgb(129, 81, 216);
/* oklch */ color: oklch(55.8% 0.197 295.7);
Tailwind
colors: {
  custom: {
    50: '#ab84e5',
    500: '#8151d8',
    950: '#000000',
  },
}
SCSS
$custom: #8151d8;
$custom-light: #ab84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d8",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 261.333,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55838,
    "c": 0.1973,
    "h": 295.7
  },
  "luminance": 0.1551
}

Semantic roles & 50–950 ramp

primary
#8151D8
secondary
#CADDA8
accent
#E641AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8151D8

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

Preview Lab → · Contrast checker → · Palette generator →

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