#7E51BC#7E51BC

#7E51BC is a mid, vivid violet. Relative luminance 0.140; OKLCH L 53.6% C 0.163 H 300.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#7E51BC
RGBrgb(126, 81, 188)
HSLhsl(265, 44%, 53%)
HSVhsv(265, 57%, 74%)
CMYKcmyk(33%, 56.9%, 0%, 26.3%)
CIE-LABlab(44.16, 41.12, -49.72)
CIE-LCHlch(44.16, 64.52, 309.60°)
OKLaboklab(53.6% 0.0825 -0.1407)
OKLCHoklch(53.6% 0.163 300.4)
XYZxyz(20.6216, 13.9512, 49.1736)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51BC #8FBC51
analogous
#5159BC #7E51BC #B451BC
triadic
#7E51BC #BC7E51 #51BC7E
tetradic
#7E51BC #BC5159 #8FBC51 #51BCB4
square
#7E51BC #BC5159 #8FBC51 #51BCB4
split-complementary
#7E51BC #BCB451 #59BC51
monochromatic
#44296A #613A96 #7E51BC #9F7DCD #C0A9DE

Accessibility & contrast

On white

5.54
#7E51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#7E51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51BC
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51BC#FFFFFF#000000##FFFFFF
##7E51BC1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2168C0
Deuteranopia (green-blind)
#3368BA
Tritanopia (blue-blind)
#71677F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e51bc;
/* rgb */ color: rgb(126, 81, 188);
/* oklch */ color: oklch(53.6% 0.163 300.4);
Tailwind
colors: {
  custom: {
    50: '#a783d1',
    500: '#7e51bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e51bc;
$custom-light: #a783d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51bc",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 265.234,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.536,
    "c": 0.1631,
    "h": 300.4
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#7E51BC
secondary
#B8CC9D
accent
#D4549E
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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