#8151E7#8151E7

#8151E7 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.215 H 293.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8151E7
RGBrgb(129, 81, 231)
HSLhsl(259, 76%, 61%)
HSVhsv(259, 65%, 91%)
CMYKcmyk(44.2%, 64.9%, 0%, 9.4%)
CIE-LABlab(47.39, 53.05, -69.15)
CIE-LCHlch(47.39, 87.16, 307.49°)
OKLaboklab(56.95% 0.0841 -0.1977)
OKLCHoklch(56.95% 0.215 293)
XYZxyz(26.4155, 16.3207, 77.3442)
Luminance0.1632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151E7 #B7E751
analogous
#516CE7 #8151E7 #CC51E7
triadic
#8151E7 #E78151 #51E781
tetradic
#8151E7 #E7516C #B7E751 #51E7CC
square
#8151E7 #E7516C #B7E751 #51E7CC
split-complementary
#8151E7 #E7CC51 #6CE751
monochromatic
#4517A7 #5B1EDC #8151E7 #A887EE #CFBDF6

Accessibility & contrast

On white

4.92
#8151E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8151E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151E7
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151E7#FFFFFF#000000##FFFFFF
##8151E71.004.924.264.92
#FFFFFF4.921.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#647595
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8151e7;
/* rgb */ color: rgb(129, 81, 231);
/* oklch */ color: oklch(56.9% 0.215 293.0);
Tailwind
colors: {
  custom: {
    50: '#ad85f0',
    500: '#8151e7',
    950: '#000000',
  },
}
SCSS
$custom: #8151e7;
$custom-light: #ad85f0;
$custom-dark: #000000;
JSON
{
  "hex": "#8151e7",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 259.2,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56947,
    "c": 0.21488,
    "h": 293
  },
  "luminance": 0.16322
}

Semantic roles & 50–950 ramp

primary
#8151E7
secondary
#D4E6AE
accent
#D80E97
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #8151E7

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

Preview Lab → · Contrast checker → · Palette generator →

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