#8051D5#8051D5

#8051D5 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.5% C 0.194 H 295.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#8051D5
RGBrgb(128, 81, 213)
HSLhsl(261, 61%, 58%)
HSVhsv(261, 62%, 84%)
CMYKcmyk(39.9%, 62%, 0%, 16.5%)
CIE-LABlab(46.01, 48.08, -61.16)
CIE-LCHlch(46.01, 77.80, 308.17°)
OKLaboklab(55.52% 0.0844 -0.1743)
OKLCHoklch(55.52% 0.194 295.8)
XYZxyz(23.8516, 15.2777, 64.6301)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051D5 #A6D551
analogous
#5164D5 #8051D5 #C251D5
triadic
#8051D5 #D58051 #51D580
tetradic
#8051D5 #D55164 #A6D551 #51D5C2
square
#8051D5 #D55164 #A6D551 #51D5C2
split-complementary
#8051D5 #D5C251 #64D551
monochromatic
#47218A #602DBC #8051D5 #A482E1 #C8B4ED

Accessibility & contrast

On white

5.18
#8051D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8051D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051D5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051D5#FFFFFF#000000##FFFFFF
##8051D51.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8051d5;
/* rgb */ color: rgb(128, 81, 213);
/* oklch */ color: oklch(55.5% 0.194 295.8);
Tailwind
colors: {
  custom: {
    50: '#aa84e3',
    500: '#8051d5',
    950: '#000000',
  },
}
SCSS
$custom: #8051d5;
$custom-light: #aa84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8051d5",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 261.364,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55522,
    "c": 0.19365,
    "h": 295.8
  },
  "luminance": 0.15278
}

Semantic roles & 50–950 ramp

primary
#8051D5
secondary
#C9DBA6
accent
#E444AB
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8051D5

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

Preview Lab → · Contrast checker → · Palette generator →

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