#7F3ABA#7F3ABA

#7F3ABA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.4% C 0.193 H 305.1°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7F3ABA
RGBrgb(127, 58, 186)
HSLhsl(272, 52%, 48%)
HSVhsv(272, 69%, 73%)
CMYKcmyk(31.7%, 68.8%, 0%, 27.1%)
CIE-LABlab(39.72, 52.83, -55.70)
CIE-LCHlch(39.72, 76.76, 313.48°)
OKLaboklab(50.36% 0.1111 -0.1582)
OKLCHoklch(50.36% 0.193 305.1)
XYZxyz(19.1264, 11.0834, 47.5766)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3ABA #75BA3A
analogous
#3F3ABA #7F3ABA #BA3AB5
triadic
#7F3ABA #BA7F3A #3ABA7F
tetradic
#7F3ABA #BA3F3A #75BA3A #3AB5BA
square
#7F3ABA #BA3F3A #75BA3A #3AB5BA
split-complementary
#7F3ABA #B5BA3A #3ABA3F
monochromatic
#3F1D5D #5F2B8B #7F3ABA #9D63CE #BA92DD

Accessibility & contrast

On white

6.53
#7F3ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7F3ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3ABA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3ABA#FFFFFF#000000##FFFFFF
##7F3ABA1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#085EB7
Tritanopia (blue-blind)
#745775
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3aba;
/* rgb */ color: rgb(127, 58, 186);
/* oklch */ color: oklch(50.4% 0.193 305.1);
Tailwind
colors: {
  custom: {
    50: '#a975d0',
    500: '#7f3aba',
    950: '#000000',
  },
}
SCSS
$custom: #7f3aba;
$custom-light: #a975d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3aba",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 186
  },
  "hsl": {
    "h": 272.344,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50363,
    "c": 0.1933,
    "h": 305.1
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#7F3ABA
secondary
#A5C888
accent
#DC4C8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7F3ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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