#8151D9#8151D9

#8151D9 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.198 H 295.5°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8151D9
RGBrgb(129, 81, 217)
HSLhsl(261, 64%, 58%)
HSVhsv(261, 63%, 85%)
CMYKcmyk(40.6%, 62.7%, 0%, 14.9%)
CIE-LABlab(46.39, 49.34, -62.83)
CIE-LCHlch(46.39, 79.89, 308.15°)
OKLaboklab(55.91% 0.0855 -0.1791)
OKLCHoklch(55.91% 0.198 295.5)
XYZxyz(24.5168, 15.5612, 67.3441)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D9 #A9D951
analogous
#5165D9 #8151D9 #C551D9
triadic
#8151D9 #D98151 #51D981
tetradic
#8151D9 #D95165 #A9D951 #51D9C5
square
#8151D9 #D95165 #A9D951 #51D9C5
split-complementary
#8151D9 #D9C551 #65D951
monochromatic
#471F90 #602AC2 #8151D9 #A583E4 #CAB5EF

Accessibility & contrast

On white

5.11
#8151D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8151D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D9
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D9#FFFFFF#000000##FFFFFF
##8151D91.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#006CD6
Tritanopia (blue-blind)
#6A708E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8151d9;
/* rgb */ color: rgb(129, 81, 217);
/* oklch */ color: oklch(55.9% 0.198 295.5);
Tailwind
colors: {
  custom: {
    50: '#ab84e6',
    500: '#8151d9',
    950: '#000000',
  },
}
SCSS
$custom: #8151d9;
$custom-light: #ab84e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d9",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 261.176,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5591,
    "c": 0.19848,
    "h": 295.5
  },
  "luminance": 0.15562
}

Semantic roles & 50–950 ramp

primary
#8151D9
secondary
#CBDEA8
accent
#E741AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8151D9

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

Preview Lab → · Contrast checker → · Palette generator →

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