#8151EB#8151EB

#8151EB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.220 H 292.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8151EB
RGBrgb(129, 81, 235)
HSLhsl(259, 79%, 62%)
HSVhsv(259, 66%, 92%)
CMYKcmyk(45.1%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.69, 54.12, -70.93)
CIE-LCHlch(47.69, 89.22, 307.34°)
OKLaboklab(57.25% 0.0836 -0.203)
OKLCHoklch(57.25% 0.22 292.4)
XYZxyz(26.9869, 16.5493, 80.3536)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151EB #BBEB51
analogous
#516EEB #8151EB #CE51EB
triadic
#8151EB #EB8151 #51EB81
tetradic
#8151EB #EB516E #BBEB51 #51EBCE
square
#8151EB #EB516E #BBEB51 #51EBCE
split-complementary
#8151EB #EBCE51 #6EEB51
monochromatic
#4414AE #591AE5 #8151EB #A988F1 #D0BFF8

Accessibility & contrast

On white

4.87
#8151EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8151EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151EB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151EB#FFFFFF#000000##FFFFFF
##8151EB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#617697
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8151eb;
/* rgb */ color: rgb(129, 81, 235);
/* oklch */ color: oklch(57.3% 0.220 292.4);
Tailwind
colors: {
  custom: {
    50: '#ad85f2',
    500: '#8151eb',
    950: '#000000',
  },
}
SCSS
$custom: #8151eb;
$custom-light: #ad85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8151eb",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 258.701,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57252,
    "c": 0.21951,
    "h": 292.4
  },
  "luminance": 0.1655
}

Semantic roles & 50–950 ramp

primary
#8151EB
secondary
#D7E8B0
accent
#DC0A9A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #8151EB

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

Preview Lab → · Contrast checker → · Palette generator →

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