#7E51C8#7E51C8

#7E51C8 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.178 H 297.6°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7E51C8
RGBrgb(126, 81, 200)
HSLhsl(263, 52%, 55%)
HSVhsv(263, 60%, 78%)
CMYKcmyk(37%, 59.5%, 0%, 21.6%)
CIE-LABlab(44.93, 44.23, -55.45)
CIE-LCHlch(44.93, 70.93, 308.58°)
OKLaboklab(54.41% 0.0824 -0.1575)
OKLCHoklch(54.41% 0.178 297.6)
XYZxyz(21.9693, 14.4903, 56.2718)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51C8 #9BC851
analogous
#5160C8 #7E51C8 #B951C8
triadic
#7E51C8 #C87E51 #51C87E
tetradic
#7E51C8 #C85160 #9BC851 #51C8B9
square
#7E51C8 #C85160 #9BC851 #51C8B9
split-complementary
#7E51C8 #C8B951 #60C851
monochromatic
#452679 #6035A7 #7E51C8 #A080D7 #C3AEE5

Accessibility & contrast

On white

5.39
#7E51C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7E51C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51C8
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51C8#FFFFFF#000000##FFFFFF
##7E51C81.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCC
Deuteranopia (green-blind)
#2269C5
Tritanopia (blue-blind)
#6D6A85
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e51c8;
/* rgb */ color: rgb(126, 81, 200);
/* oklch */ color: oklch(54.4% 0.178 297.6);
Tailwind
colors: {
  custom: {
    50: '#a884d9',
    500: '#7e51c8',
    950: '#000000',
  },
}
SCSS
$custom: #7e51c8;
$custom-light: #a884d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51c8",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 262.689,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54406,
    "c": 0.17779,
    "h": 297.6
  },
  "luminance": 0.14491
}

Semantic roles & 50–950 ramp

primary
#7E51C8
secondary
#C0D3A1
accent
#DB4CA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E51C8

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

Preview Lab → · Contrast checker → · Palette generator →

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