#8151C8#8151C8

#8151C8 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.7% C 0.178 H 299.0°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8151C8
RGBrgb(129, 81, 200)
HSLhsl(264, 52%, 55%)
HSVhsv(264, 60%, 78%)
CMYKcmyk(35.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(45.25, 44.92, -54.91)
CIE-LCHlch(45.25, 70.94, 309.28°)
OKLaboklab(54.72% 0.0864 -0.1559)
OKLCHoklch(54.72% 0.178 299)
XYZxyz(22.4184, 14.7219, 56.2929)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151C8 #98C851
analogous
#515CC8 #8151C8 #BD51C8
triadic
#8151C8 #C88151 #51C881
tetradic
#8151C8 #C8515C #98C851 #51C8BD
square
#8151C8 #C8515C #98C851 #51C8BD
split-complementary
#8151C8 #C8BD51 #5CC851
monochromatic
#472679 #6335A7 #8151C8 #A380D7 #C4AEE5

Accessibility & contrast

On white

5.32
#8151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151C8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151C8#FFFFFF#000000##FFFFFF
##8151C81.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066BCC
Deuteranopia (green-blind)
#266AC5
Tritanopia (blue-blind)
#716A85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8151c8;
/* rgb */ color: rgb(129, 81, 200);
/* oklch */ color: oklch(54.7% 0.178 299.0);
Tailwind
colors: {
  custom: {
    50: '#aa84d9',
    500: '#8151c8',
    950: '#000000',
  },
}
SCSS
$custom: #8151c8;
$custom-light: #aa84d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8151c8",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 264.202,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54715,
    "c": 0.1782,
    "h": 299
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#8151C8
secondary
#BFD3A1
accent
#DB4CA2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8151C8

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

Preview Lab → · Contrast checker → · Palette generator →

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