#7E4CD2#7E4CD2

#7E4CD2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.4% C 0.197 H 296.4°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#7E4CD2
RGBrgb(126, 76, 210)
HSLhsl(262, 60%, 56%)
HSVhsv(262, 64%, 82%)
CMYKcmyk(40%, 63.8%, 0%, 17.6%)
CIE-LABlab(44.60, 49.55, -61.74)
CIE-LCHlch(44.60, 79.17, 308.75°)
OKLaboklab(54.38% 0.0875 -0.176)
OKLCHoklch(54.38% 0.197 296.4)
XYZxyz(22.8185, 14.2572, 62.5100)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CD2 #A0D24C
analogous
#4C5DD2 #7E4CD2 #C14CD2
triadic
#7E4CD2 #D27E4C #4CD27E
tetradic
#7E4CD2 #D24C5D #A0D24C #4CD2C1
square
#7E4CD2 #D24C5D #A0D24C #4CD2C1
split-complementary
#7E4CD2 #D2C14C #5DD24C
monochromatic
#452183 #5F2DB4 #7E4CD2 #A17DDE #C4AEEB

Accessibility & contrast

On white

5.45
#7E4CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#7E4CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CD2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CD2#FFFFFF#000000##FFFFFF
##7E4CD21.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#696B88
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4cd2;
/* rgb */ color: rgb(126, 76, 210);
/* oklch */ color: oklch(54.4% 0.197 296.4);
Tailwind
colors: {
  custom: {
    50: '#a981e1',
    500: '#7e4cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cd2;
$custom-light: #a981e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cd2",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 210
  },
  "hsl": {
    "h": 262.388,
    "s": 59.821,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54383,
    "c": 0.19658,
    "h": 296.4
  },
  "luminance": 0.14258
}

Semantic roles & 50–950 ramp

primary
#7E4CD2
secondary
#C4D9A1
accent
#E345A8
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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