#8051EA#8051EA

#8051EA is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.218 H 292.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8051EA
RGBrgb(128, 81, 234)
HSLhsl(258, 78%, 62%)
HSVhsv(258, 65%, 92%)
CMYKcmyk(45.3%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.51, 53.67, -70.66)
CIE-LCHlch(47.51, 88.73, 307.22°)
OKLaboklab(57.08% 0.0824 -0.2022)
OKLCHoklch(57.08% 0.218 292.2)
XYZxyz(26.6917, 16.4137, 79.5878)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8051EA #BBEA51
analogous
#516FEA #8051EA #CC51EA
triadic
#8051EA #EA8051 #51EA80
tetradic
#8051EA #EA516F #BBEA51 #51EACC
square
#8051EA #EA516F #BBEA51 #51EACC
split-complementary
#8051EA #EACC51 #6FEA51
monochromatic
#4315AC #591BE2 #8051EA #A888F1 #D0BEF7

Accessibility & contrast

On white

4.90
#8051EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#8051EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8051EA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8051EA#FFFFFF#000000##FFFFFF
##8051EA1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8051ea;
/* rgb */ color: rgb(128, 81, 234);
/* oklch */ color: oklch(57.1% 0.218 292.2);
Tailwind
colors: {
  custom: {
    50: '#ad85f2',
    500: '#8051ea',
    950: '#000000',
  },
}
SCSS
$custom: #8051ea;
$custom-light: #ad85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8051ea",
  "rgb": {
    "r": 128,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 258.431,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57079,
    "c": 0.21833,
    "h": 292.2
  },
  "luminance": 0.16415
}

Semantic roles & 50–950 ramp

primary
#8051EA
secondary
#D6E8AF
accent
#DB0B9B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #8051EA

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

Preview Lab → · Contrast checker → · Palette generator →

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