#8051D8#8051D8

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

Color values

HEX#8051D8
RGBrgb(128, 81, 216)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 63%, 85%)
CMYKcmyk(40.7%, 62.5%, 0%, 15.3%)
CIE-LABlab(46.22, 48.87, -62.54)
CIE-LCHlch(46.22, 79.38, 308.01°)
OKLaboklab(55.74% 0.0842 -0.1783)
OKLCHoklch(55.74% 0.197 295.3)
XYZxyz(24.2359, 15.4314, 66.6541)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051D8 #A9D851
analogous
#5165D8 #8051D8 #C351D8
triadic
#8051D8 #D88051 #51D880
tetradic
#8051D8 #D85165 #A9D851 #51D8C3
square
#8051D8 #D85165 #A9D851 #51D8C3
split-complementary
#8051D8 #D8C351 #65D851
monochromatic
#46208F #5F2BC1 #8051D8 #A483E3 #C9B5EE

Accessibility & contrast

On white

5.14
#8051D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8051D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051D8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051D8#FFFFFF#000000##FFFFFF
##8051D81.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#69708D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8051d8;
/* rgb */ color: rgb(128, 81, 216);
/* oklch */ color: oklch(55.7% 0.197 295.3);
Tailwind
colors: {
  custom: {
    50: '#ab84e5',
    500: '#8051d8',
    950: '#000000',
  },
}
SCSS
$custom: #8051d8;
$custom-light: #ab84e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8051d8",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 260.889,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55738,
    "c": 0.19721,
    "h": 295.3
  },
  "luminance": 0.15432
}

Semantic roles & 50–950 ramp

primary
#8051D8
secondary
#CBDDA8
accent
#E641AD
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8051D8

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

Preview Lab → · Contrast checker → · Palette generator →

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