#7E4EA7#7E4EA7

#7E4EA7 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.8% C 0.142 H 307.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7E4EA7
RGBrgb(126, 78, 167)
HSLhsl(272, 36%, 48%)
HSVhsv(272, 53%, 65%)
CMYKcmyk(24.6%, 53.3%, 0%, 34.5%)
CIE-LABlab(42.27, 37.57, -40.39)
CIE-LCHlch(42.27, 55.16, 312.93°)
OKLaboklab(51.8% 0.0856 -0.1134)
OKLCHoklch(51.8% 0.142 307)
XYZxyz(18.3022, 12.6746, 38.0340)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4EA7 #77A74E
analogous
#514EA7 #7E4EA7 #A74EA3
triadic
#7E4EA7 #A77E4E #4EA77E
tetradic
#7E4EA7 #A7514E #77A74E #4EA3A7
square
#7E4EA7 #A7514E #77A74E #4EA3A7
split-complementary
#7E4EA7 #A3A74E #4EA751
monochromatic
#3F2754 #5F3B7D #7E4EA7 #9C74BE #BA9ED2

Accessibility & contrast

On white

5.94
#7E4EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7E4EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4EA7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4EA7#FFFFFF#000000##FFFFFF
##7E4EA71.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3362AA
Deuteranopia (green-blind)
#4264A5
Tritanopia (blue-blind)
#785E73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4ea7;
/* rgb */ color: rgb(126, 78, 167);
/* oklch */ color: oklch(51.8% 0.142 307.0);
Tailwind
colors: {
  custom: {
    50: '#a681c1',
    500: '#7e4ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ea7;
$custom-light: #a681c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ea7",
  "rgb": {
    "r": 126,
    "g": 78,
    "b": 167
  },
  "hsl": {
    "h": 272.36,
    "s": 36.327,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51802,
    "c": 0.14203,
    "h": 307
  },
  "luminance": 0.12674
}

Semantic roles & 50–950 ramp

primary
#7E4EA7
secondary
#A7BE92
accent
#CC5B8F
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E4EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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