#7E4FA8#7E4FA8

#7E4FA8 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.0% C 0.142 H 306.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7E4FA8
RGBrgb(126, 79, 168)
HSLhsl(272, 36%, 48%)
HSVhsv(272, 53%, 66%)
CMYKcmyk(25%, 53%, 0%, 34.1%)
CIE-LABlab(42.54, 37.25, -40.55)
CIE-LCHlch(42.54, 55.06, 312.57°)
OKLaboklab(52.02% 0.0842 -0.1138)
OKLCHoklch(52.02% 0.142 306.5)
XYZxyz(18.4666, 12.8549, 38.5466)
Luminance0.1285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FA8 #79A84F
analogous
#514FA8 #7E4FA8 #A84FA5
triadic
#7E4FA8 #A87E4F #4FA87E
tetradic
#7E4FA8 #A8514F #79A84F #4FA5A8
square
#7E4FA8 #A8514F #79A84F #4FA5A8
split-complementary
#7E4FA8 #A5A84F #4FA851
monochromatic
#402855 #5F3B7E #7E4FA8 #9C76BE #BA9FD2

Accessibility & contrast

On white

5.88
#7E4FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7E4FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FA8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FA8#FFFFFF#000000##FFFFFF
##7E4FA81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3463AB
Deuteranopia (green-blind)
#4265A6
Tritanopia (blue-blind)
#775F74
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4fa8;
/* rgb */ color: rgb(126, 79, 168);
/* oklch */ color: oklch(52.0% 0.142 306.5);
Tailwind
colors: {
  custom: {
    50: '#a682c2',
    500: '#7e4fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fa8;
$custom-light: #a682c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fa8",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 271.685,
    "s": 36.032,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52024,
    "c": 0.14162,
    "h": 306.5
  },
  "luminance": 0.12855
}

Semantic roles & 50–950 ramp

primary
#7E4FA8
secondary
#A8BF94
accent
#CC5C91
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E4FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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