#8151D4#8151D4

#8151D4 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.6% C 0.193 H 296.5°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8151D4
RGBrgb(129, 81, 212)
HSLhsl(262, 60%, 57%)
HSVhsv(262, 62%, 83%)
CMYKcmyk(39.2%, 61.8%, 0%, 16.9%)
CIE-LABlab(46.05, 48.03, -60.53)
CIE-LCHlch(46.05, 77.27, 308.43°)
OKLaboklab(55.55% 0.0858 -0.1724)
OKLCHoklch(55.55% 0.193 296.5)
XYZxyz(23.8763, 15.3050, 63.9708)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D4 #A4D451
analogous
#5162D4 #8151D4 #C351D4
triadic
#8151D4 #D48151 #51D481
tetradic
#8151D4 #D45162 #A4D451 #51D4C3
square
#8151D4 #D45162 #A4D451 #51D4C3
split-complementary
#8151D4 #D4C351 #62D451
monochromatic
#482289 #612EBA #8151D4 #A582E0 #C8B3EC

Accessibility & contrast

On white

5.17
#8151D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8151D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D4
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D4#FFFFFF#000000##FFFFFF
##8151D41.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#046BD1
Tritanopia (blue-blind)
#6D6E8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8151d4;
/* rgb */ color: rgb(129, 81, 212);
/* oklch */ color: oklch(55.6% 0.193 296.5);
Tailwind
colors: {
  custom: {
    50: '#ab84e2',
    500: '#8151d4',
    950: '#000000',
  },
}
SCSS
$custom: #8151d4;
$custom-light: #ab84e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d4",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 261.985,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55551,
    "c": 0.19255,
    "h": 296.5
  },
  "luminance": 0.15305
}

Semantic roles & 50–950 ramp

primary
#8151D4
secondary
#C7DBA6
accent
#E444A9
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8151D4

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

Preview Lab → · Contrast checker → · Palette generator →

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