#7F3AC5#7F3AC5

#7F3AC5 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.205 H 302.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC5
RGBrgb(127, 58, 197)
HSLhsl(270, 55%, 50%)
HSVhsv(270, 71%, 77%)
CMYKcmyk(35.5%, 70.6%, 0%, 22.7%)
CIE-LABlab(40.52, 55.44, -60.83)
CIE-LCHlch(40.52, 82.31, 312.35°)
OKLaboklab(51.19% 0.1095 -0.1732)
OKLCHoklch(51.19% 0.205 302.3)
XYZxyz(20.3411, 11.5693, 53.9740)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC5 #80C53A
analogous
#3A3BC5 #7F3AC5 #C43AC5
triadic
#7F3AC5 #C57F3A #3AC57F
tetradic
#7F3AC5 #C53A3B #80C53A #3AC5C4
square
#7F3AC5 #C53A3B #80C53A #3AC5C4
split-complementary
#7F3AC5 #C5C43A #3BC53A
monochromatic
#421E66 #612C96 #7F3AC5 #9E69D3 #BC99E1

Accessibility & contrast

On white

6.34
#7F3AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7F3AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AC5
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC5#FFFFFF#000000##FFFFFF
##7F3AC51.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#705B7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3ac5;
/* rgb */ color: rgb(127, 58, 197);
/* oklch */ color: oklch(51.2% 0.205 302.3);
Tailwind
colors: {
  custom: {
    50: '#aa76d7',
    500: '#7f3ac5',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac5;
$custom-light: #aa76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac5",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 197
  },
  "hsl": {
    "h": 269.784,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.51188,
    "c": 0.20495,
    "h": 302.3
  },
  "luminance": 0.11569
}

Semantic roles & 50–950 ramp

primary
#7F3AC5
secondary
#AECD8E
accent
#DE4A94
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #7F3AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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