#8151E4#8151E4

#8151E4 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.7% C 0.211 H 293.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8151E4
RGBrgb(129, 81, 228)
HSLhsl(260, 73%, 61%)
HSVhsv(260, 64%, 89%)
CMYKcmyk(43.4%, 64.5%, 0%, 10.6%)
CIE-LABlab(47.17, 52.25, -67.81)
CIE-LCHlch(47.17, 85.61, 307.62°)
OKLaboklab(56.72% 0.0844 -0.1938)
OKLCHoklch(56.72% 0.211 293.5)
XYZxyz(25.9955, 16.1527, 75.1319)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151E4 #B4E451
analogous
#516AE4 #8151E4 #CA51E4
triadic
#8151E4 #E48151 #51E481
tetradic
#8151E4 #E4516A #B4E451 #51E4CA
square
#8151E4 #E4516A #B4E451 #51E4CA
split-complementary
#8151E4 #E4CA51 #6AE451
monochromatic
#4619A2 #5C21D7 #8151E4 #A786EC #CEBBF4

Accessibility & contrast

On white

4.96
#8151E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8151E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151E4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151E4#FFFFFF#000000##FFFFFF
##8151E41.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#657493
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8151e4;
/* rgb */ color: rgb(129, 81, 228);
/* oklch */ color: oklch(56.7% 0.211 293.5);
Tailwind
colors: {
  custom: {
    50: '#ad84ed',
    500: '#8151e4',
    950: '#000000',
  },
}
SCSS
$custom: #8151e4;
$custom-light: #ad84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8151e4",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 259.592,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56721,
    "c": 0.21138,
    "h": 293.5
  },
  "luminance": 0.16153
}

Semantic roles & 50–950 ramp

primary
#8151E4
secondary
#D2E4AC
accent
#D51095
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8151E4

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

Preview Lab → · Contrast checker → · Palette generator →

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