#7F3AB4#7F3AB4

#7F3AB4 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.9% C 0.187 H 306.8°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#7F3AB4
RGBrgb(127, 58, 180)
HSLhsl(274, 51%, 47%)
HSVhsv(274, 68%, 71%)
CMYKcmyk(29.4%, 67.8%, 0%, 29.4%)
CIE-LABlab(39.30, 51.42, -52.84)
CIE-LCHlch(39.30, 73.73, 314.22°)
OKLaboklab(49.93% 0.1119 -0.1498)
OKLCHoklch(49.93% 0.187 306.8)
XYZxyz(18.5019, 10.8336, 44.2876)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AB4 #6FB43A
analogous
#423AB4 #7F3AB4 #B43AAC
triadic
#7F3AB4 #B47F3A #3AB47F
tetradic
#7F3AB4 #B4423A #6FB43A #3AACB4
square
#7F3AB4 #B4423A #6FB43A #3AACB4
split-complementary
#7F3AB4 #ACB43A #3AB442
monochromatic
#3E1C57 #5E2B86 #7F3AB4 #9D60CC #B98EDB

Accessibility & contrast

On white

6.63
#7F3AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7F3AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AB4
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AB4#FFFFFF#000000##FFFFFF
##7F3AB41.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB8
Deuteranopia (green-blind)
#1A5DB1
Tritanopia (blue-blind)
#765572
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f3ab4;
/* rgb */ color: rgb(127, 58, 180);
/* oklch */ color: oklch(49.9% 0.187 306.8);
Tailwind
colors: {
  custom: {
    50: '#a875cb',
    500: '#7f3ab4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ab4;
$custom-light: #a875cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ab4",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 180
  },
  "hsl": {
    "h": 273.934,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49928,
    "c": 0.18693,
    "h": 306.8
  },
  "luminance": 0.10833
}

Semantic roles & 50–950 ramp

primary
#7F3AB4
secondary
#A1C585
accent
#DB4D8B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7F3AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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