#7F3AC3#7F3AC3

#7F3AC3 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.0% C 0.203 H 302.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC3
RGBrgb(127, 58, 195)
HSLhsl(270, 54%, 50%)
HSVhsv(270, 70%, 76%)
CMYKcmyk(34.9%, 70.3%, 0%, 23.5%)
CIE-LABlab(40.37, 54.96, -59.91)
CIE-LCHlch(40.37, 81.30, 312.54°)
OKLaboklab(51.04% 0.1098 -0.1705)
OKLCHoklch(51.04% 0.203 302.8)
XYZxyz(20.1135, 11.4782, 52.7751)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC3 #7EC33A
analogous
#3B3AC3 #7F3AC3 #C33AC3
triadic
#7F3AC3 #C37F3A #3AC37F
tetradic
#7F3AC3 #C33B3A #7EC33A #3AC3C3
square
#7F3AC3 #C33B3A #7EC33A #3AC3C3
split-complementary
#7F3AC3 #C3C33A #3AC33B
monochromatic
#421E65 #602C94 #7F3AC3 #9D68D2 #BC97E0

Accessibility & contrast

On white

6.37
#7F3AC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F3AC3
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC3#FFFFFF#000000##FFFFFF
##7F3AC31.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#715A7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3ac3;
/* rgb */ color: rgb(127, 58, 195);
/* oklch */ color: oklch(51.0% 0.203 302.8);
Tailwind
colors: {
  custom: {
    50: '#aa76d6',
    500: '#7f3ac3',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac3;
$custom-light: #aa76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac3",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 195
  },
  "hsl": {
    "h": 270.219,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51036,
    "c": 0.20283,
    "h": 302.8
  },
  "luminance": 0.11478
}

Semantic roles & 50–950 ramp

primary
#7F3AC3
secondary
#ACCC8D
accent
#DE4A93
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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