#8051D7#8051D7

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

Color values

HEX#8051D7
RGBrgb(128, 81, 215)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 62%, 84%)
CMYKcmyk(40.5%, 62.3%, 0%, 15.7%)
CIE-LABlab(46.15, 48.61, -62.09)
CIE-LCHlch(46.15, 78.85, 308.06°)
OKLaboklab(55.67% 0.0843 -0.177)
OKLCHoklch(55.67% 0.196 295.5)
XYZxyz(24.1070, 15.3798, 65.9753)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051D7 #A8D751
analogous
#5165D7 #8051D7 #C351D7
triadic
#8051D7 #D78051 #51D780
tetradic
#8051D7 #D75165 #A8D751 #51D7C3
square
#8051D7 #D75165 #A8D751 #51D7C3
split-complementary
#8051D7 #D7C351 #65D751
monochromatic
#47208D #5F2CBF #8051D7 #A483E2 #C9B5EE

Accessibility & contrast

On white

5.15
#8051D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8051D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051D7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051D7#FFFFFF#000000##FFFFFF
##8051D71.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)
#006EDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#6A6F8D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8051d7;
/* rgb */ color: rgb(128, 81, 215);
/* oklch */ color: oklch(55.7% 0.196 295.5);
Tailwind
colors: {
  custom: {
    50: '#ab84e4',
    500: '#8051d7',
    950: '#000000',
  },
}
SCSS
$custom: #8051d7;
$custom-light: #ab84e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8051d7",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 261.045,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55665,
    "c": 0.19602,
    "h": 295.5
  },
  "luminance": 0.1538
}

Semantic roles & 50–950 ramp

primary
#8051D7
secondary
#CADDA7
accent
#E642AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8051D7

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

Preview Lab → · Contrast checker → · Palette generator →

#8051D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva