#8151E6#8151E6

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

Color values

HEX#8151E6
RGBrgb(129, 81, 230)
HSLhsl(259, 75%, 61%)
HSVhsv(259, 65%, 90%)
CMYKcmyk(43.9%, 64.8%, 0%, 9.8%)
CIE-LABlab(47.32, 52.79, -68.71)
CIE-LCHlch(47.32, 86.64, 307.53°)
OKLaboklab(56.87% 0.0842 -0.1964)
OKLCHoklch(56.87% 0.214 293.2)
XYZxyz(26.2747, 16.2644, 76.6025)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151E6 #B6E651
analogous
#516BE6 #8151E6 #CB51E6
triadic
#8151E6 #E68151 #51E681
tetradic
#8151E6 #E6516B #B6E651 #51E6CB
square
#8151E6 #E6516B #B6E651 #51E6CB
split-complementary
#8151E6 #E6CB51 #6BE651
monochromatic
#4518A5 #5C1FDA #8151E6 #A887EE #CEBCF5

Accessibility & contrast

On white

4.94
#8151E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8151E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151E6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151E6#FFFFFF#000000##FFFFFF
##8151E61.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EB
Deuteranopia (green-blind)
#006DE3
Tritanopia (blue-blind)
#647495
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8151e6;
/* rgb */ color: rgb(129, 81, 230);
/* oklch */ color: oklch(56.9% 0.214 293.2);
Tailwind
colors: {
  custom: {
    50: '#ad85ef',
    500: '#8151e6',
    950: '#000000',
  },
}
SCSS
$custom: #8151e6;
$custom-light: #ad85ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8151e6",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 259.329,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56871,
    "c": 0.21372,
    "h": 293.2
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#8151E6
secondary
#D3E5AD
accent
#D70E96
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #8151E6

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

Preview Lab → · Contrast checker → · Palette generator →

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