#8151D1#8151D1

#8151D1 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.3% C 0.189 H 297.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8151D1
RGBrgb(129, 81, 209)
HSLhsl(263, 58%, 57%)
HSVhsv(263, 61%, 82%)
CMYKcmyk(38.3%, 61.2%, 0%, 18%)
CIE-LABlab(45.85, 47.25, -59.14)
CIE-LCHlch(45.85, 75.69, 308.62°)
OKLaboklab(55.34% 0.086 -0.1683)
OKLCHoklch(55.34% 0.189 297.1)
XYZxyz(23.5014, 15.1550, 61.9963)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D1 #A1D151
analogous
#5161D1 #8151D1 #C151D1
triadic
#8151D1 #D18151 #51D181
tetradic
#8151D1 #D15161 #A1D151 #51D1C1
square
#8151D1 #D15161 #A1D151 #51D1C1
split-complementary
#8151D1 #D1C151 #61D151
monochromatic
#482385 #6230B5 #8151D1 #A481DE #C7B2EB

Accessibility & contrast

On white

5.21
#8151D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8151D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D1#FFFFFF#000000##FFFFFF
##8151D11.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD5
Deuteranopia (green-blind)
#126BCE
Tritanopia (blue-blind)
#6E6D89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8151d1;
/* rgb */ color: rgb(129, 81, 209);
/* oklch */ color: oklch(55.3% 0.189 297.1);
Tailwind
colors: {
  custom: {
    50: '#ab84e0',
    500: '#8151d1',
    950: '#000000',
  },
}
SCSS
$custom: #8151d1;
$custom-light: #ab84e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d1",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 209
  },
  "hsl": {
    "h": 262.5,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55339,
    "c": 0.18898,
    "h": 297.1
  },
  "luminance": 0.15155
}

Semantic roles & 50–950 ramp

primary
#8151D1
secondary
#C5D9A5
accent
#E146A7
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8151D1

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

Preview Lab → · Contrast checker → · Palette generator →

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