#8151A2#8151A2

#8151A2 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.3% C 0.132 H 309.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8151A2
RGBrgb(129, 81, 162)
HSLhsl(276, 33%, 48%)
HSVhsv(276, 50%, 64%)
CMYKcmyk(20.4%, 50%, 0%, 36.5%)
CIE-LABlab(43.00, 35.52, -36.23)
CIE-LCHlch(43.00, 50.74, 314.43°)
OKLaboklab(52.34% 0.0847 -0.1012)
OKLCHoklch(52.34% 0.132 309.9)
XYZxyz(18.5161, 13.1609, 35.7403)
Luminance0.1316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151A2 #72A251
analogous
#5951A2 #8151A2 #A2519A
triadic
#8151A2 #A28151 #51A281
tetradic
#8151A2 #A25951 #72A251 #519AA2
square
#8151A2 #A25951 #72A251 #519AA2
split-complementary
#8151A2 #9AA251 #51A259
monochromatic
#402850 #613D79 #8151A2 #9E76BA #BB9FCF

Accessibility & contrast

On white

5.78
#8151A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8151A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151A2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151A2#FFFFFF#000000##FFFFFF
##8151A21.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D63A5
Deuteranopia (green-blind)
#4A66A0
Tritanopia (blue-blind)
#7D5E72
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8151a2;
/* rgb */ color: rgb(129, 81, 162);
/* oklch */ color: oklch(52.3% 0.132 309.9);
Tailwind
colors: {
  custom: {
    50: '#a783be',
    500: '#8151a2',
    950: '#000000',
  },
}
SCSS
$custom: #8151a2;
$custom-light: #a783be;
$custom-dark: #000000;
JSON
{
  "hex": "#8151a2",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 275.556,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52337,
    "c": 0.13195,
    "h": 309.9
  },
  "luminance": 0.13161
}

Semantic roles & 50–950 ramp

primary
#8151A2
secondary
#A4BC93
accent
#C95E8A
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100B12
muted
#7F7C81

Preview Lab

Preview with #8151A2

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

Preview Lab → · Contrast checker → · Palette generator →

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