#8151BA#8151BA

#8151BA is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.161 H 302.4°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8151BA
RGBrgb(129, 81, 186)
HSLhsl(267, 43%, 52%)
HSVhsv(267, 56%, 73%)
CMYKcmyk(30.6%, 56.5%, 0%, 27.1%)
CIE-LABlab(44.37, 41.36, -48.20)
CIE-LCHlch(44.37, 63.51, 310.63°)
OKLaboklab(53.79% 0.0864 -0.1361)
OKLCHoklch(53.79% 0.161 302.4)
XYZxyz(20.8566, 14.0971, 48.0671)
Luminance0.1410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151BA #8ABA51
analogous
#5155BA #8151BA #B651BA
triadic
#8151BA #BA8151 #51BA81
tetradic
#8151BA #BA5155 #8ABA51 #51BAB6
square
#8151BA #BA5155 #8ABA51 #51BAB6
split-complementary
#8151BA #BAB651 #55BA51
monochromatic
#462968 #633A93 #8151BA #A17DCB #C0A9DD

Accessibility & contrast

On white

5.50
#8151BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8151BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151BA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151BA#FFFFFF#000000##FFFFFF
##8151BA1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2668BD
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#76667E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8151ba;
/* rgb */ color: rgb(129, 81, 186);
/* oklch */ color: oklch(53.8% 0.161 302.4);
Tailwind
colors: {
  custom: {
    50: '#a984cf',
    500: '#8151ba',
    950: '#000000',
  },
}
SCSS
$custom: #8151ba;
$custom-light: #a984cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8151ba",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 267.429,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5379,
    "c": 0.16125,
    "h": 302.4
  },
  "luminance": 0.14097
}

Semantic roles & 50–950 ramp

primary
#8151BA
secondary
#B5CA9D
accent
#D35599
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8151BA

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

Preview Lab → · Contrast checker → · Palette generator →

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