#7E51BE#7E51BE

#7E51BE is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.7% C 0.166 H 299.9°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#7E51BE
RGBrgb(126, 81, 190)
HSLhsl(265, 46%, 53%)
HSVhsv(265, 57%, 75%)
CMYKcmyk(33.7%, 57.4%, 0%, 25.5%)
CIE-LABlab(44.29, 41.64, -50.68)
CIE-LCHlch(44.29, 65.59, 309.40°)
OKLaboklab(53.73% 0.0825 -0.1435)
OKLCHoklch(53.73% 0.166 299.9)
XYZxyz(20.8386, 14.0380, 50.3170)
Luminance0.1404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51BE #91BE51
analogous
#515ABE #7E51BE #B551BE
triadic
#7E51BE #BE7E51 #51BE7E
tetradic
#7E51BE #BE515A #91BE51 #51BEB5
square
#7E51BE #BE515A #91BE51 #51BEB5
split-complementary
#7E51BE #BEB551 #5ABE51
monochromatic
#44286C #613999 #7E51BE #9F7ECF #C0AADF

Accessibility & contrast

On white

5.52
#7E51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#7E51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51BE
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51BE#FFFFFF#000000##FFFFFF
##7E51BE1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E68C2
Deuteranopia (green-blind)
#3068BC
Tritanopia (blue-blind)
#716780
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e51be;
/* rgb */ color: rgb(126, 81, 190);
/* oklch */ color: oklch(53.7% 0.166 299.9);
Tailwind
colors: {
  custom: {
    50: '#a783d2',
    500: '#7e51be',
    950: '#000000',
  },
}
SCSS
$custom: #7e51be;
$custom-light: #a783d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51be",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 264.771,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53731,
    "c": 0.16556,
    "h": 299.9
  },
  "luminance": 0.14038
}

Semantic roles & 50–950 ramp

primary
#7E51BE
secondary
#B9CD9E
accent
#D5539F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E51BE

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

Preview Lab → · Contrast checker → · Palette generator →

#7E51BE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva