#7E51CF#7E51CF

#7E51CF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.9% C 0.186 H 296.2°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7E51CF
RGBrgb(126, 81, 207)
HSLhsl(261, 57%, 56%)
HSVhsv(261, 61%, 81%)
CMYKcmyk(39.1%, 60.9%, 0%, 18.8%)
CIE-LABlab(45.39, 46.07, -58.73)
CIE-LCHlch(45.39, 74.65, 308.11°)
OKLaboklab(54.89% 0.0821 -0.1672)
OKLCHoklch(54.89% 0.186 296.2)
XYZxyz(22.8062, 14.8250, 60.6793)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51CF #A2CF51
analogous
#5163CF #7E51CF #BD51CF
triadic
#7E51CF #CF7E51 #51CF7E
tetradic
#7E51CF #CF5163 #A2CF51 #51CFBD
square
#7E51CF #CF5163 #A2CF51 #51CFBD
split-complementary
#7E51CF #CFBD51 #63CF51
monochromatic
#452482 #5F31B2 #7E51CF #A281DC #C5B1E9

Accessibility & contrast

On white

5.30
#7E51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7E51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51CF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51CF#FFFFFF#000000##FFFFFF
##7E51CF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#106ACC
Tritanopia (blue-blind)
#6A6D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e51cf;
/* rgb */ color: rgb(126, 81, 207);
/* oklch */ color: oklch(54.9% 0.186 296.2);
Tailwind
colors: {
  custom: {
    50: '#a984de',
    500: '#7e51cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e51cf;
$custom-light: #a984de;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51cf",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 261.429,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54894,
    "c": 0.18627,
    "h": 296.2
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#7E51CF
secondary
#C5D8A4
accent
#E048AA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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