#7F3AAC#7F3AAC

#7F3AAC is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.178 H 309.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7F3AAC
RGBrgb(127, 58, 172)
HSLhsl(276, 50%, 45%)
HSVhsv(276, 66%, 67%)
CMYKcmyk(26.2%, 66.3%, 0%, 32.5%)
CIE-LABlab(38.75, 49.57, -48.98)
CIE-LCHlch(38.75, 69.69, 315.35°)
OKLaboklab(49.36% 0.1126 -0.1384)
OKLCHoklch(49.36% 0.178 309.1)
XYZxyz(17.7104, 10.5170, 40.1187)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AAC #67AC3A
analogous
#463AAC #7F3AAC #AC3AA0
triadic
#7F3AAC #AC7F3A #3AAC7F
tetradic
#7F3AAC #AC463A #67AC3A #3AA0AC
square
#7F3AAC #AC463A #67AC3A #3AA0AC
split-complementary
#7F3AAC #A0AC3A #3AAC46
monochromatic
#3B1B50 #5D2B7E #7F3AAC #9D5BC8 #B889D7

Accessibility & contrast

On white

6.77
#7F3AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F3AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AAC
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AAC#FFFFFF#000000##FFFFFF
##7F3AAC1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AF
Deuteranopia (green-blind)
#275CA9
Tritanopia (blue-blind)
#78526E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f3aac;
/* rgb */ color: rgb(127, 58, 172);
/* oklch */ color: oklch(49.4% 0.178 309.1);
Tailwind
colors: {
  custom: {
    50: '#a875c5',
    500: '#7f3aac',
    950: '#000000',
  },
}
SCSS
$custom: #7f3aac;
$custom-light: #a875c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3aac",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 172
  },
  "hsl": {
    "h": 276.316,
    "s": 49.565,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49364,
    "c": 0.17843,
    "h": 309.1
  },
  "luminance": 0.10517
}

Semantic roles & 50–950 ramp

primary
#7F3AAC
secondary
#9AC280
accent
#D94F85
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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