#7E51BB#7E51BB

#7E51BB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.5% C 0.162 H 300.6°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7E51BB
RGBrgb(126, 81, 187)
HSLhsl(265, 44%, 53%)
HSVhsv(265, 57%, 73%)
CMYKcmyk(32.6%, 56.7%, 0%, 26.7%)
CIE-LABlab(44.10, 40.87, -49.23)
CIE-LCHlch(44.10, 63.98, 309.69°)
OKLaboklab(53.54% 0.0825 -0.1393)
OKLCHoklch(53.54% 0.162 300.6)
XYZxyz(20.5141, 13.9082, 48.6079)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51BB #8EBB51
analogous
#5159BB #7E51BB #B351BB
triadic
#7E51BB #BB7E51 #51BB7E
tetradic
#7E51BB #BB5159 #8EBB51 #51BBB3
square
#7E51BB #BB5159 #8EBB51 #51BBB3
split-complementary
#7E51BB #BBB351 #59BB51
monochromatic
#442969 #613A95 #7E51BB #9F7DCC #BFA9DD

Accessibility & contrast

On white

5.55
#7E51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7E51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51BB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51BB#FFFFFF#000000##FFFFFF
##7E51BB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#3468B9
Tritanopia (blue-blind)
#72667E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e51bb;
/* rgb */ color: rgb(126, 81, 187);
/* oklch */ color: oklch(53.5% 0.162 300.6);
Tailwind
colors: {
  custom: {
    50: '#a783d0',
    500: '#7e51bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e51bb;
$custom-light: #a783d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51bb",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 265.472,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53535,
    "c": 0.16186,
    "h": 300.6
  },
  "luminance": 0.13908
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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