#7F3AC4#7F3AC4

#7F3AC4 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.1% C 0.204 H 302.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC4
RGBrgb(127, 58, 196)
HSLhsl(270, 54%, 50%)
HSVhsv(270, 70%, 77%)
CMYKcmyk(35.2%, 70.4%, 0%, 23.1%)
CIE-LABlab(40.45, 55.20, -60.37)
CIE-LCHlch(40.45, 81.80, 312.44°)
OKLaboklab(51.11% 0.1097 -0.1719)
OKLCHoklch(51.11% 0.204 302.5)
XYZxyz(20.2269, 11.5236, 53.3725)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC4 #7FC43A
analogous
#3A3AC4 #7F3AC4 #C43AC4
triadic
#7F3AC4 #C47F3A #3AC47F
tetradic
#7F3AC4 #C43A3A #7FC43A #3AC4C4
square
#7F3AC4 #C43A3A #7FC43A #3AC4C4
split-complementary
#7F3AC4 #C4C43A #3AC43A
monochromatic
#421E66 #602C95 #7F3AC4 #9E69D3 #BC98E0

Accessibility & contrast

On white

6.35
#7F3AC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7F3AC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AC4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC4#FFFFFF#000000##FFFFFF
##7F3AC41.006.353.306.35
#FFFFFF6.351.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#715B7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3ac4;
/* rgb */ color: rgb(127, 58, 196);
/* oklch */ color: oklch(51.1% 0.204 302.5);
Tailwind
colors: {
  custom: {
    50: '#aa76d7',
    500: '#7f3ac4',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac4;
$custom-light: #aa76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac4",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 196
  },
  "hsl": {
    "h": 270,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.20389,
    "h": 302.5
  },
  "luminance": 0.11524
}

Semantic roles & 50–950 ramp

primary
#7F3AC4
secondary
#ADCC8E
accent
#DE4A94
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #7F3AC4

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

Preview Lab → · Contrast checker → · Palette generator →

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