#8151EA#8151EA

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

Color values

HEX#8151EA
RGBrgb(129, 81, 234)
HSLhsl(259, 78%, 62%)
HSVhsv(259, 65%, 92%)
CMYKcmyk(44.9%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.61, 53.85, -70.49)
CIE-LCHlch(47.61, 88.70, 307.38°)
OKLaboklab(57.18% 0.0837 -0.2017)
OKLCHoklch(57.18% 0.218 292.5)
XYZxyz(26.8429, 16.4916, 79.5948)
Luminance0.1649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8151EA #BAEA51
analogous
#516DEA #8151EA #CE51EA
triadic
#8151EA #EA8151 #51EA81
tetradic
#8151EA #EA516D #BAEA51 #51EACE
square
#8151EA #EA516D #BAEA51 #51EACE
split-complementary
#8151EA #EACE51 #6DEA51
monochromatic
#4415AC #5A1BE2 #8151EA #A988F1 #D0BEF7

Accessibility & contrast

On white

4.89
#8151EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8151EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8151EA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8151EA#FFFFFF#000000##FFFFFF
##8151EA1.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8151ea;
/* rgb */ color: rgb(129, 81, 234);
/* oklch */ color: oklch(57.2% 0.218 292.5);
Tailwind
colors: {
  custom: {
    50: '#ad85f2',
    500: '#8151ea',
    950: '#000000',
  },
}
SCSS
$custom: #8151ea;
$custom-light: #ad85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#8151ea",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 258.824,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57175,
    "c": 0.21835,
    "h": 292.5
  },
  "luminance": 0.16492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8151EA

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

Preview Lab → · Contrast checker → · Palette generator →

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