#7F3AC7#7F3AC7

#7F3AC7 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.207 H 301.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC7
RGBrgb(127, 58, 199)
HSLhsl(269, 56%, 50%)
HSVhsv(269, 71%, 78%)
CMYKcmyk(36.2%, 70.9%, 0%, 22%)
CIE-LABlab(40.67, 55.92, -61.75)
CIE-LCHlch(40.67, 83.31, 312.16°)
OKLaboklab(51.34% 0.1092 -0.176)
OKLCHoklch(51.34% 0.207 301.8)
XYZxyz(20.5718, 11.6616, 55.1889)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC7 #82C73A
analogous
#3A3BC7 #7F3AC7 #C63AC7
triadic
#7F3AC7 #C77F3A #3AC77F
tetradic
#7F3AC7 #C73A3B #82C73A #3AC7C6
square
#7F3AC7 #C73A3B #82C73A #3AC7C6
split-complementary
#7F3AC7 #C7C63A #3BC73A
monochromatic
#431E69 #612B98 #7F3AC7 #9E6AD5 #BD99E2

Accessibility & contrast

On white

6.30
#7F3AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7F3AC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AC7
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC7#FFFFFF#000000##FFFFFF
##7F3AC71.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#705C7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f3ac7;
/* rgb */ color: rgb(127, 58, 199);
/* oklch */ color: oklch(51.3% 0.207 301.8);
Tailwind
colors: {
  custom: {
    50: '#aa76d9',
    500: '#7f3ac7',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac7;
$custom-light: #aa76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac7",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 199
  },
  "hsl": {
    "h": 269.362,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51342,
    "c": 0.20706,
    "h": 301.8
  },
  "luminance": 0.11662
}

Semantic roles & 50–950 ramp

primary
#7F3AC7
secondary
#AFCE8F
accent
#DF4995
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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