#7E4EC1#7E4EC1

#7E4EC1 is a mid, vivid violet. Relative luminance 0.137; OKLCH L 53.5% C 0.174 H 299.8°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#7E4EC1
RGBrgb(126, 78, 193)
HSLhsl(265, 48%, 53%)
HSVhsv(265, 60%, 76%)
CMYKcmyk(34.7%, 59.6%, 0%, 24.3%)
CIE-LABlab(43.85, 44.07, -53.13)
CIE-LCHlch(43.85, 69.03, 309.67°)
OKLaboklab(53.47% 0.0862 -0.1507)
OKLCHoklch(53.47% 0.174 299.8)
XYZxyz(20.9519, 13.7345, 51.9889)
Luminance0.1373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EC1 #91C14E
analogous
#4E58C1 #7E4EC1 #B74EC1
triadic
#7E4EC1 #C17E4E #4EC17E
tetradic
#7E4EC1 #C14E58 #91C14E #4EC1B7
square
#7E4EC1 #C14E58 #91C14E #4EC1B7
split-complementary
#7E4EC1 #C1B74E #58C14E
monochromatic
#44276E #61369B #7E4EC1 #9F7BD1 #C0A9E1

Accessibility & contrast

On white

5.60
#7E4EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7E4EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EC1
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EC1#FFFFFF#000000##FFFFFF
##7E4EC11.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0967C5
Deuteranopia (green-blind)
#2767BE
Tritanopia (blue-blind)
#706680
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e4ec1;
/* rgb */ color: rgb(126, 78, 193);
/* oklch */ color: oklch(53.5% 0.174 299.8);
Tailwind
colors: {
  custom: {
    50: '#a882d4',
    500: '#7e4ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ec1;
$custom-light: #a882d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ec1",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 193
  },
  "hsl": {
    "h": 265.043,
    "s": 48.117,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53472,
    "c": 0.17363,
    "h": 299.8
  },
  "luminance": 0.13735
}

Semantic roles & 50–950 ramp

primary
#7E4EC1
secondary
#B9CE9D
accent
#D8509F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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