#8151CA#8151CA

#8151CA is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.181 H 298.5°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8151CA
RGBrgb(129, 81, 202)
HSLhsl(264, 53%, 55%)
HSVhsv(264, 60%, 79%)
CMYKcmyk(36.1%, 59.9%, 0%, 20.8%)
CIE-LABlab(45.38, 45.43, -55.86)
CIE-LCHlch(45.38, 72.00, 309.12°)
OKLaboklab(54.85% 0.0863 -0.1587)
OKLCHoklch(54.85% 0.181 298.5)
XYZxyz(22.6537, 14.8160, 57.5319)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151CA #9ACA51
analogous
#515DCA #8151CA #BE51CA
triadic
#8151CA #CA8151 #51CA81
tetradic
#8151CA #CA515D #9ACA51 #51CABE
square
#8151CA #CA515D #9ACA51 #51CABE
split-complementary
#8151CA #CABE51 #5DCA51
monochromatic
#47257B #6334AA #8151CA #A380D8 #C5AFE7

Accessibility & contrast

On white

5.30
#8151CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8151CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151CA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151CA#FFFFFF#000000##FFFFFF
##8151CA1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#236AC7
Tritanopia (blue-blind)
#716B86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8151ca;
/* rgb */ color: rgb(129, 81, 202);
/* oklch */ color: oklch(54.9% 0.181 298.5);
Tailwind
colors: {
  custom: {
    50: '#aa84db',
    500: '#8151ca',
    950: '#000000',
  },
}
SCSS
$custom: #8151ca;
$custom-light: #aa84db;
$custom-dark: #000000;
JSON
{
  "hex": "#8151ca",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 263.802,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.54852,
    "c": 0.18061,
    "h": 298.5
  },
  "luminance": 0.14816
}

Semantic roles & 50–950 ramp

primary
#8151CA
secondary
#C1D5A2
accent
#DD4BA3
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8151CA

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

Preview Lab → · Contrast checker → · Palette generator →

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