#7F3ABE#7F3ABE

#7F3ABE is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.7% C 0.198 H 304.0°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#7F3ABE
RGBrgb(127, 58, 190)
HSLhsl(271, 53%, 49%)
HSVhsv(271, 69%, 75%)
CMYKcmyk(33.2%, 69.5%, 0%, 25.5%)
CIE-LABlab(40.01, 53.77, -57.58)
CIE-LCHlch(40.01, 78.78, 313.04°)
OKLaboklab(50.66% 0.1106 -0.1637)
OKLCHoklch(50.66% 0.198 304)
XYZxyz(19.5576, 11.2559, 49.8475)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3ABE #79BE3A
analogous
#3D3ABE #7F3ABE #BE3ABB
triadic
#7F3ABE #BE7F3A #3ABE7F
tetradic
#7F3ABE #BE3D3A #79BE3A #3ABBBE
square
#7F3ABE #BE3D3A #79BE3A #3ABBBE
split-complementary
#7F3ABE #BBBE3A #3ABE3D
monochromatic
#401D60 #602C8F #7F3ABE #9D65D0 #BB94DE

Accessibility & contrast

On white

6.46
#7F3ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7F3ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3ABE
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3ABE#FFFFFF#000000##FFFFFF
##7F3ABE1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#735978
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7f3abe;
/* rgb */ color: rgb(127, 58, 190);
/* oklch */ color: oklch(50.7% 0.198 304.0);
Tailwind
colors: {
  custom: {
    50: '#a976d2',
    500: '#7f3abe',
    950: '#000000',
  },
}
SCSS
$custom: #7f3abe;
$custom-light: #a976d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3abe",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 190
  },
  "hsl": {
    "h": 271.364,
    "s": 53.226,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5066,
    "c": 0.19754,
    "h": 304
  },
  "luminance": 0.11256
}

Semantic roles & 50–950 ramp

primary
#7F3ABE
secondary
#A8CA8A
accent
#DD4B91
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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