#8151B7#8151B7

#8151B7 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.158 H 303.2°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8151B7
RGBrgb(129, 81, 183)
HSLhsl(268, 41%, 52%)
HSVhsv(268, 56%, 72%)
CMYKcmyk(29.5%, 55.7%, 0%, 28.2%)
CIE-LABlab(44.19, 40.61, -46.73)
CIE-LCHlch(44.19, 61.91, 310.99°)
OKLaboklab(53.6% 0.0863 -0.1319)
OKLCHoklch(53.6% 0.158 303.2)
XYZxyz(20.5410, 13.9709, 46.4051)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151B7 #87B751
analogous
#5154B7 #8151B7 #B451B7
triadic
#8151B7 #B78151 #51B781
tetradic
#8151B7 #B75154 #87B751 #51B7B4
square
#8151B7 #B75154 #87B751 #51B7B4
split-complementary
#8151B7 #B7B451 #54B751
monochromatic
#452964 #633B8F #8151B7 #A07CC9 #C0A8DB

Accessibility & contrast

On white

5.53
#8151B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8151B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151B7
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151B7#FFFFFF#000000##FFFFFF
##8151B71.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67BA
Deuteranopia (green-blind)
#3B68B5
Tritanopia (blue-blind)
#77657C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8151b7;
/* rgb */ color: rgb(129, 81, 183);
/* oklch */ color: oklch(53.6% 0.158 303.2);
Tailwind
colors: {
  custom: {
    50: '#a984cd',
    500: '#8151b7',
    950: '#000000',
  },
}
SCSS
$custom: #8151b7;
$custom-light: #a984cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8151b7",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 268.235,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53599,
    "c": 0.15759,
    "h": 303.2
  },
  "luminance": 0.13971
}

Semantic roles & 50–950 ramp

primary
#8151B7
secondary
#B3C89C
accent
#D15798
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8151B7

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

Preview Lab → · Contrast checker → · Palette generator →

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