#8051EB#8051EB

#8051EB is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.2% C 0.219 H 292.0°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8051EB
RGBrgb(128, 81, 235)
HSLhsl(258, 79%, 62%)
HSVhsv(258, 66%, 92%)
CMYKcmyk(45.5%, 65.5%, 0%, 7.8%)
CIE-LABlab(47.59, 53.93, -71.10)
CIE-LCHlch(47.59, 89.24, 307.18°)
OKLaboklab(57.16% 0.0823 -0.2035)
OKLCHoklch(57.16% 0.219 292)
XYZxyz(26.8357, 16.4713, 80.3465)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051EB #BCEB51
analogous
#516FEB #8051EB #CD51EB
triadic
#8051EB #EB8051 #51EB80
tetradic
#8051EB #EB516F #BCEB51 #51EBCD
square
#8051EB #EB516F #BCEB51 #51EBCD
split-complementary
#8051EB #EBCD51 #6FEB51
monochromatic
#4314AE #581AE5 #8051EB #A888F1 #D0BFF8

Accessibility & contrast

On white

4.89
#8051EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8051EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051EB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051EB#FFFFFF#000000##FFFFFF
##8051EB1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#607697
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8051eb;
/* rgb */ color: rgb(128, 81, 235);
/* oklch */ color: oklch(57.2% 0.219 292.0);
Tailwind
colors: {
  custom: {
    50: '#ad85f2',
    500: '#8051eb',
    950: '#000000',
  },
}
SCSS
$custom: #8051eb;
$custom-light: #ad85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8051eb",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 258.312,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57156,
    "c": 0.21949,
    "h": 292
  },
  "luminance": 0.16472
}

Semantic roles & 50–950 ramp

primary
#8051EB
secondary
#D7E8B0
accent
#DC0A9C
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #8051EB

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

Preview Lab → · Contrast checker → · Palette generator →

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