#8151B2#8151B2

#8151B2 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.3% C 0.151 H 304.6°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8151B2
RGBrgb(129, 81, 178)
HSLhsl(270, 39%, 51%)
HSVhsv(270, 54%, 70%)
CMYKcmyk(27.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(43.90, 39.37, -44.27)
CIE-LCHlch(43.90, 59.25, 311.65°)
OKLaboklab(53.29% 0.0861 -0.1246)
OKLCHoklch(53.29% 0.151 304.6)
XYZxyz(20.0298, 13.7664, 43.7128)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151B2 #82B251
analogous
#5151B2 #8151B2 #B151B2
triadic
#8151B2 #B28151 #51B281
tetradic
#8151B2 #B25151 #82B251 #51B2B1
square
#8151B2 #B25151 #82B251 #51B2B1
split-complementary
#8151B2 #B2B151 #51B251
monochromatic
#442A5F #633D89 #8151B2 #A07BC5 #BEA6D8

Accessibility & contrast

On white

5.60
#8151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8151B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151B2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151B2#FFFFFF#000000##FFFFFF
##8151B21.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F66B5
Deuteranopia (green-blind)
#3F68B0
Tritanopia (blue-blind)
#79637A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8151b2;
/* rgb */ color: rgb(129, 81, 178);
/* oklch */ color: oklch(53.3% 0.151 304.6);
Tailwind
colors: {
  custom: {
    50: '#a883c9',
    500: '#8151b2',
    950: '#000000',
  },
}
SCSS
$custom: #8151b2;
$custom-light: #a883c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8151b2",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 269.691,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53286,
    "c": 0.15148,
    "h": 304.6
  },
  "luminance": 0.13766
}

Semantic roles & 50–950 ramp

primary
#8151B2
secondary
#B0C59A
accent
#CF5995
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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