#7E4DC2#7E4DC2

#7E4DC2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.4% C 0.176 H 299.7°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#7E4DC2
RGBrgb(126, 77, 194)
HSLhsl(265, 49%, 53%)
HSVhsv(265, 60%, 76%)
CMYKcmyk(35.1%, 60.3%, 0%, 23.9%)
CIE-LABlab(43.71, 44.87, -53.94)
CIE-LCHlch(43.71, 70.16, 309.76°)
OKLaboklab(53.39% 0.0874 -0.1531)
OKLCHoklch(53.39% 0.176 299.7)
XYZxyz(20.9933, 13.6382, 52.5549)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DC2 #91C24D
analogous
#4D56C2 #7E4DC2 #B84DC2
triadic
#7E4DC2 #C27E4D #4DC27E
tetradic
#7E4DC2 #C24D56 #91C24D #4DC2B8
square
#7E4DC2 #C24D56 #91C24D #4DC2B8
split-complementary
#7E4DC2 #C2B84D #56C24D
monochromatic
#44266F #61369C #7E4DC2 #9F7BD2 #C0A8E1

Accessibility & contrast

On white

5.63
#7E4DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7E4DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DC2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DC2#FFFFFF#000000##FFFFFF
##7E4DC21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#2466BF
Tritanopia (blue-blind)
#6F6680
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7e4dc2;
/* rgb */ color: rgb(126, 77, 194);
/* oklch */ color: oklch(53.4% 0.176 299.7);
Tailwind
colors: {
  custom: {
    50: '#a881d5',
    500: '#7e4dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dc2;
$custom-light: #a881d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dc2",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 265.128,
    "s": 48.954,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53391,
    "c": 0.17627,
    "h": 299.7
  },
  "luminance": 0.13638
}

Semantic roles & 50–950 ramp

primary
#7E4DC2
secondary
#B9CF9C
accent
#D94F9F
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7E4DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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