#7E51BF#7E51BF

#7E51BF is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.8% C 0.167 H 299.6°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#7E51BF
RGBrgb(126, 81, 191)
HSLhsl(265, 46%, 53%)
HSVhsv(265, 58%, 75%)
CMYKcmyk(34%, 57.6%, 0%, 25.1%)
CIE-LABlab(44.35, 41.89, -51.16)
CIE-LCHlch(44.35, 66.13, 309.31°)
OKLaboklab(53.8% 0.0825 -0.1449)
OKLCHoklch(53.8% 0.167 299.6)
XYZxyz(20.9483, 14.0819, 50.8945)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51BF #92BF51
analogous
#515BBF #7E51BF #B551BF
triadic
#7E51BF #BF7E51 #51BF7E
tetradic
#7E51BF #BF515B #92BF51 #51BFB5
square
#7E51BF #BF515B #92BF51 #51BFB5
split-complementary
#7E51BF #BFB551 #5BBF51
monochromatic
#45286D #61399A #7E51BF #9F7ECF #C0AAE0

Accessibility & contrast

On white

5.50
#7E51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#7E51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51BF
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51BF#FFFFFF#000000##FFFFFF
##7E51BF1.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C69C3
Deuteranopia (green-blind)
#2F68BC
Tritanopia (blue-blind)
#706880
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e51bf;
/* rgb */ color: rgb(126, 81, 191);
/* oklch */ color: oklch(53.8% 0.167 299.6);
Tailwind
colors: {
  custom: {
    50: '#a784d3',
    500: '#7e51bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e51bf;
$custom-light: #a784d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51bf",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 264.545,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53798,
    "c": 0.16679,
    "h": 299.6
  },
  "luminance": 0.14082
}

Semantic roles & 50–950 ramp

primary
#7E51BF
secondary
#BACE9E
accent
#D652A0
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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