#8151B4#8151B4

#8151B4 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.4% C 0.154 H 304.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8151B4
RGBrgb(129, 81, 180)
HSLhsl(269, 40%, 51%)
HSVhsv(269, 55%, 71%)
CMYKcmyk(28.3%, 55%, 0%, 29.4%)
CIE-LABlab(44.01, 39.86, -45.26)
CIE-LCHlch(44.01, 60.31, 311.37°)
OKLaboklab(53.41% 0.0862 -0.1275)
OKLCHoklch(53.41% 0.154 304)
XYZxyz(20.2321, 13.8473, 44.7781)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151B4 #84B451
analogous
#5152B4 #8151B4 #B251B4
triadic
#8151B4 #B48151 #51B481
tetradic
#8151B4 #B45152 #84B451 #51B4B2
square
#8151B4 #B45152 #84B451 #51B4B2
split-complementary
#8151B4 #B4B251 #52B451
monochromatic
#442A61 #633C8C #8151B4 #A07CC6 #BFA7D9

Accessibility & contrast

On white

5.57
#8151B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8151B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151B4
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151B4#FFFFFF#000000##FFFFFF
##8151B41.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B7
Deuteranopia (green-blind)
#3D68B2
Tritanopia (blue-blind)
#78647B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8151b4;
/* rgb */ color: rgb(129, 81, 180);
/* oklch */ color: oklch(53.4% 0.154 304.0);
Tailwind
colors: {
  custom: {
    50: '#a883cb',
    500: '#8151b4',
    950: '#000000',
  },
}
SCSS
$custom: #8151b4;
$custom-light: #a883cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8151b4",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 269.091,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5341,
    "c": 0.15393,
    "h": 304
  },
  "luminance": 0.13847
}

Semantic roles & 50–950 ramp

primary
#8151B4
secondary
#B1C69B
accent
#D05896
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #8151B4

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

Preview Lab → · Contrast checker → · Palette generator →

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