#8151CE#8151CE

#8151CE is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.185 H 297.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8151CE
RGBrgb(129, 81, 206)
HSLhsl(263, 56%, 56%)
HSVhsv(263, 61%, 81%)
CMYKcmyk(37.4%, 60.7%, 0%, 19.2%)
CIE-LABlab(45.65, 46.47, -57.74)
CIE-LCHlch(45.65, 74.11, 308.83°)
OKLaboklab(55.13% 0.0862 -0.1642)
OKLCHoklch(55.13% 0.185 297.7)
XYZxyz(23.1335, 15.0079, 60.0586)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151CE #9ECE51
analogous
#5160CE #8151CE #C051CE
triadic
#8151CE #CE8151 #51CE81
tetradic
#8151CE #CE5160 #9ECE51 #51CEC0
square
#8151CE #CE5160 #9ECE51 #51CEC0
split-complementary
#8151CE #CEC051 #60CE51
monochromatic
#482480 #6232B0 #8151CE #A481DB #C6B1E9

Accessibility & contrast

On white

5.25
#8151CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8151CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151CE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151CE#FFFFFF#000000##FFFFFF
##8151CE1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#1B6BCB
Tritanopia (blue-blind)
#6F6C88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8151ce;
/* rgb */ color: rgb(129, 81, 206);
/* oklch */ color: oklch(55.1% 0.185 297.7);
Tailwind
colors: {
  custom: {
    50: '#aa84de',
    500: '#8151ce',
    950: '#000000',
  },
}
SCSS
$custom: #8151ce;
$custom-light: #aa84de;
$custom-dark: #000000;
JSON
{
  "hex": "#8151ce",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 263.04,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55129,
    "c": 0.1854,
    "h": 297.7
  },
  "luminance": 0.15008
}

Semantic roles & 50–950 ramp

primary
#8151CE
secondary
#C3D7A4
accent
#DF48A5
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8151CE

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

Preview Lab → · Contrast checker → · Palette generator →

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