#7E4EA2#7E4EA2

#7E4EA2 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.5% C 0.136 H 308.8°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7E4EA2
RGBrgb(126, 78, 162)
HSLhsl(274, 35%, 47%)
HSVhsv(274, 52%, 64%)
CMYKcmyk(22.2%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.99, 36.37, -37.86)
CIE-LCHlch(41.99, 52.50, 313.85°)
OKLaboklab(51.51% 0.0851 -0.106)
OKLCHoklch(51.51% 0.136 308.8)
XYZxyz(17.8489, 12.4933, 35.6466)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EA2 #72A24E
analogous
#544EA2 #7E4EA2 #A24E9C
triadic
#7E4EA2 #A27E4E #4EA27E
tetradic
#7E4EA2 #A2544E #72A24E #4E9CA2
square
#7E4EA2 #A2544E #72A24E #4E9CA2
split-complementary
#7E4EA2 #9CA24E #4EA254
monochromatic
#3E264F #5E3A79 #7E4EA2 #9C72BB #B99BCF

Accessibility & contrast

On white

6.00
#7E4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7E4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EA2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EA2#FFFFFF#000000##FFFFFF
##7E4EA21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A5
Deuteranopia (green-blind)
#4564A0
Tritanopia (blue-blind)
#795C70
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e4ea2;
/* rgb */ color: rgb(126, 78, 162);
/* oklch */ color: oklch(51.5% 0.136 308.8);
Tailwind
colors: {
  custom: {
    50: '#a581be',
    500: '#7e4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ea2;
$custom-light: #a581be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ea2",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 274.286,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51505,
    "c": 0.13594,
    "h": 308.8
  },
  "luminance": 0.12493
}

Semantic roles & 50–950 ramp

primary
#7E4EA2
secondary
#A3BC90
accent
#CB5D8C
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7E4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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