#7E4FA2#7E4FA2

#7E4FA2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.7% C 0.134 H 308.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7E4FA2
RGBrgb(126, 79, 162)
HSLhsl(274, 34%, 47%)
HSVhsv(274, 51%, 64%)
CMYKcmyk(22.2%, 51.2%, 0%, 36.5%)
CIE-LABlab(42.21, 35.80, -37.51)
CIE-LCHlch(42.21, 51.85, 313.67°)
OKLaboklab(51.67% 0.0837 -0.105)
OKLCHoklch(51.67% 0.134 308.6)
XYZxyz(17.9205, 12.6365, 35.6704)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FA2 #73A24F
analogous
#554FA2 #7E4FA2 #A24F9D
triadic
#7E4FA2 #A27E4F #4FA27E
tetradic
#7E4FA2 #A2554F #73A24F #4F9DA2
square
#7E4FA2 #A2554F #73A24F #4F9DA2
split-complementary
#7E4FA2 #9DA24F #4FA255
monochromatic
#3E2750 #5E3B79 #7E4FA2 #9C73BB #B99CCF

Accessibility & contrast

On white

5.95
#7E4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E4FA2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FA2#FFFFFF#000000##FFFFFF
##7E4FA21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3862A5
Deuteranopia (green-blind)
#4664A0
Tritanopia (blue-blind)
#795D71
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e4fa2;
/* rgb */ color: rgb(126, 79, 162);
/* oklch */ color: oklch(51.7% 0.134 308.6);
Tailwind
colors: {
  custom: {
    50: '#a582be',
    500: '#7e4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fa2;
$custom-light: #a582be;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fa2",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 273.976,
    "s": 34.44,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51668,
    "c": 0.13426,
    "h": 308.6
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#7E4FA2
secondary
#A4BC91
accent
#CB5D8D
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7E4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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