#8151C2#8151C2

#8151C2 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.3% C 0.171 H 300.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8151C2
RGBrgb(129, 81, 194)
HSLhsl(265, 48%, 54%)
HSVhsv(265, 58%, 76%)
CMYKcmyk(33.5%, 58.2%, 0%, 23.9%)
CIE-LABlab(44.87, 43.38, -52.06)
CIE-LCHlch(44.87, 67.76, 309.80°)
OKLaboklab(54.31% 0.0865 -0.1475)
OKLCHoklch(54.31% 0.171 300.4)
XYZxyz(21.7310, 14.4469, 52.6721)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151C2 #92C251
analogous
#515AC2 #8151C2 #BA51C2
triadic
#8151C2 #C28151 #51C281
tetradic
#8151C2 #C2515A #92C251 #51C2BA
square
#8151C2 #C2515A #92C251 #51C2BA
split-complementary
#8151C2 #C2BA51 #5AC251
monochromatic
#472871 #63379E #8151C2 #A27ED2 #C3ACE2

Accessibility & contrast

On white

5.40
#8151C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8151C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151C2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151C2#FFFFFF#000000##FFFFFF
##8151C21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196AC6
Deuteranopia (green-blind)
#2F69BF
Tritanopia (blue-blind)
#736882
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8151c2;
/* rgb */ color: rgb(129, 81, 194);
/* oklch */ color: oklch(54.3% 0.171 300.4);
Tailwind
colors: {
  custom: {
    50: '#a984d5',
    500: '#8151c2',
    950: '#000000',
  },
}
SCSS
$custom: #8151c2;
$custom-light: #a984d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8151c2",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 265.487,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54312,
    "c": 0.17096,
    "h": 300.4
  },
  "luminance": 0.14447
}

Semantic roles & 50–950 ramp

primary
#8151C2
secondary
#BBD09F
accent
#D8509E
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #8151C2

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

Preview Lab → · Contrast checker → · Palette generator →

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