#8151D6#8151D6

#8151D6 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.195 H 296.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8151D6
RGBrgb(129, 81, 214)
HSLhsl(262, 62%, 58%)
HSVhsv(262, 62%, 84%)
CMYKcmyk(39.7%, 62.1%, 0%, 16.1%)
CIE-LABlab(46.19, 48.56, -61.45)
CIE-LCHlch(46.19, 78.32, 308.31°)
OKLaboklab(55.69% 0.0857 -0.1751)
OKLCHoklch(55.69% 0.195 296.1)
XYZxyz(24.1301, 15.4066, 65.3077)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151D6 #A6D651
analogous
#5164D6 #8151D6 #C351D6
triadic
#8151D6 #D68151 #51D681
tetradic
#8151D6 #D65164 #A6D651 #51D6C3
square
#8151D6 #D65164 #A6D651 #51D6C3
split-complementary
#8151D6 #D6C351 #64D651
monochromatic
#47218C #612DBD #8151D6 #A583E2 #C9B4ED

Accessibility & contrast

On white

5.15
#8151D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8151D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151D6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151D6#FFFFFF#000000##FFFFFF
##8151D61.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#006CD3
Tritanopia (blue-blind)
#6C6F8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8151d6;
/* rgb */ color: rgb(129, 81, 214);
/* oklch */ color: oklch(55.7% 0.195 296.1);
Tailwind
colors: {
  custom: {
    50: '#ab84e3',
    500: '#8151d6',
    950: '#000000',
  },
}
SCSS
$custom: #8151d6;
$custom-light: #ab84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8151d6",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 261.654,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55694,
    "c": 0.19493,
    "h": 296.1
  },
  "luminance": 0.15407
}

Semantic roles & 50–950 ramp

primary
#8151D6
secondary
#C9DCA7
accent
#E543AA
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8151D6

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

Preview Lab → · Contrast checker → · Palette generator →

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