#8151D5#8151D5

#8151D5 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.6% C 0.194 H 296.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8151D5
RGBrgb(129, 81, 213)
HSLhsl(262, 61%, 58%)
HSVhsv(262, 62%, 84%)
CMYKcmyk(39.4%, 62%, 0%, 16.5%)
CIE-LABlab(46.12, 48.29, -60.99)
CIE-LCHlch(46.12, 77.79, 308.37°)
OKLaboklab(55.62% 0.0858 -0.1737)
OKLCHoklch(55.62% 0.194 296.3)
XYZxyz(24.0028, 15.3556, 64.6372)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D5 #A5D551
analogous
#5163D5 #8151D5 #C351D5
triadic
#8151D5 #D58151 #51D581
tetradic
#8151D5 #D55163 #A5D551 #51D5C3
square
#8151D5 #D55163 #A5D551 #51D5C3
split-complementary
#8151D5 #D5C351 #63D551
monochromatic
#47218A #612DBC #8151D5 #A582E1 #C8B4ED

Accessibility & contrast

On white

5.16
#8151D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8151D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D5#FFFFFF#000000##FFFFFF
##8151D51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#6C6F8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8151d5;
/* rgb */ color: rgb(129, 81, 213);
/* oklch */ color: oklch(55.6% 0.194 296.3);
Tailwind
colors: {
  custom: {
    50: '#ab84e3',
    500: '#8151d5',
    950: '#000000',
  },
}
SCSS
$custom: #8151d5;
$custom-light: #ab84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d5",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 261.818,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55622,
    "c": 0.19374,
    "h": 296.3
  },
  "luminance": 0.15356
}

Semantic roles & 50–950 ramp

primary
#8151D5
secondary
#C8DBA6
accent
#E444AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8151D5

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

Preview Lab → · Contrast checker → · Palette generator →

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