#7F3AAA#7F3AAA

#7F3AAA is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.2% C 0.176 H 309.7°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7F3AAA
RGBrgb(127, 58, 170)
HSLhsl(277, 49%, 45%)
HSVhsv(277, 66%, 67%)
CMYKcmyk(25.3%, 65.9%, 0%, 33.3%)
CIE-LABlab(38.62, 49.11, -48.00)
CIE-LCHlch(38.62, 68.67, 315.66°)
OKLaboklab(49.23% 0.1127 -0.1355)
OKLCHoklch(49.23% 0.176 309.7)
XYZxyz(17.5197, 10.4408, 39.1148)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AAA #65AA3A
analogous
#473AAA #7F3AAA #AA3A9D
triadic
#7F3AAA #AA7F3A #3AAA7F
tetradic
#7F3AAA #AA473A #65AA3A #3A9DAA
square
#7F3AAA #AA473A #65AA3A #3A9DAA
split-complementary
#7F3AAA #9DAA3A #3AAA47
monochromatic
#3B1B4F #5D2A7C #7F3AAA #9D5AC7 #B888D6

Accessibility & contrast

On white

6.80
#7F3AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7F3AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AAA
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AAA#FFFFFF#000000##FFFFFF
##7F3AAA1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#2A5CA7
Tritanopia (blue-blind)
#79516D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3aaa;
/* rgb */ color: rgb(127, 58, 170);
/* oklch */ color: oklch(49.2% 0.176 309.7);
Tailwind
colors: {
  custom: {
    50: '#a875c4',
    500: '#7f3aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f3aaa;
$custom-light: #a875c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3aaa",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 170
  },
  "hsl": {
    "h": 276.964,
    "s": 49.123,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49227,
    "c": 0.1763,
    "h": 309.7
  },
  "luminance": 0.1044
}

Semantic roles & 50–950 ramp

primary
#7F3AAA
secondary
#98C17F
accent
#D94F84
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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