#7E4FA7#7E4FA7

#7E4FA7 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.0% C 0.140 H 306.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7E4FA7
RGBrgb(126, 79, 167)
HSLhsl(272, 36%, 48%)
HSVhsv(272, 53%, 65%)
CMYKcmyk(24.6%, 52.7%, 0%, 34.5%)
CIE-LABlab(42.49, 37.00, -40.04)
CIE-LCHlch(42.49, 54.52, 312.74°)
OKLaboklab(51.96% 0.0842 -0.1124)
OKLCHoklch(51.96% 0.14 306.8)
XYZxyz(18.3738, 12.8178, 38.0579)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FA7 #78A74F
analogous
#524FA7 #7E4FA7 #A74FA4
triadic
#7E4FA7 #A77E4F #4FA77E
tetradic
#7E4FA7 #A7524F #78A74F #4FA4A7
square
#7E4FA7 #A7524F #78A74F #4FA4A7
split-complementary
#7E4FA7 #A4A74F #4FA752
monochromatic
#3F2854 #5F3B7D #7E4FA7 #9C75BE #BA9FD2

Accessibility & contrast

On white

5.89
#7E4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7E4FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FA7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FA7#FFFFFF#000000##FFFFFF
##7E4FA71.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AA
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#785F73
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4fa7;
/* rgb */ color: rgb(126, 79, 167);
/* oklch */ color: oklch(52.0% 0.140 306.8);
Tailwind
colors: {
  custom: {
    50: '#a682c1',
    500: '#7e4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fa7;
$custom-light: #a682c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fa7",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 272.045,
    "s": 35.772,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51964,
    "c": 0.14039,
    "h": 306.8
  },
  "luminance": 0.12818
}

Semantic roles & 50–950 ramp

primary
#7E4FA7
secondary
#A7BE93
accent
#CC5C90
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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