#7F3AA4#7F3AA4

#7F3AA4 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.8% C 0.170 H 311.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7F3AA4
RGBrgb(127, 58, 164)
HSLhsl(279, 48%, 44%)
HSVhsv(279, 65%, 64%)
CMYKcmyk(22.6%, 64.6%, 0%, 35.7%)
CIE-LABlab(38.23, 47.76, -45.04)
CIE-LCHlch(38.23, 65.65, 316.68°)
OKLaboklab(48.82% 0.1131 -0.1269)
OKLCHoklch(48.82% 0.17 311.7)
XYZxyz(16.9651, 10.2189, 36.1935)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AA4 #5FA43A
analogous
#4A3AA4 #7F3AA4 #A43A94
triadic
#7F3AA4 #A47F3A #3AA47F
tetradic
#7F3AA4 #A44A3A #5FA43A #3A94A4
square
#7F3AA4 #A44A3A #5FA43A #3A94A4
split-complementary
#7F3AA4 #94A43A #3AA44A
monochromatic
#391A4A #5C2A77 #7F3AA4 #9E57C4 #B885D4

Accessibility & contrast

On white

6.90
#7F3AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7F3AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AA4
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AA4#FFFFFF#000000##FFFFFF
##7F3AA41.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0357A7
Deuteranopia (green-blind)
#305BA2
Tritanopia (blue-blind)
#7B4F6A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f3aa4;
/* rgb */ color: rgb(127, 58, 164);
/* oklch */ color: oklch(48.8% 0.170 311.7);
Tailwind
colors: {
  custom: {
    50: '#a775bf',
    500: '#7f3aa4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3aa4;
$custom-light: #a775bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3aa4",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 279.057,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.48821,
    "c": 0.16994,
    "h": 311.7
  },
  "luminance": 0.10218
}

Semantic roles & 50–950 ramp

primary
#7F3AA4
secondary
#93BE7C
accent
#D75080
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #7F3AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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