#7F3AC0#7F3AC0

#7F3AC0 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.8% C 0.200 H 303.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7F3AC0
RGBrgb(127, 58, 192)
HSLhsl(271, 54%, 49%)
HSVhsv(271, 70%, 75%)
CMYKcmyk(33.9%, 69.8%, 0%, 24.7%)
CIE-LABlab(40.15, 54.25, -58.51)
CIE-LCHlch(40.15, 79.79, 312.83°)
OKLaboklab(50.81% 0.1103 -0.1664)
OKLCHoklch(50.81% 0.2 303.5)
XYZxyz(19.7777, 11.3439, 51.0066)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F3AC0 #7BC03A
analogous
#3C3AC0 #7F3AC0 #C03ABE
triadic
#7F3AC0 #C07F3A #3AC07F
tetradic
#7F3AC0 #C03C3A #7BC03A #3ABEC0
square
#7F3AC0 #C03C3A #7BC03A #3ABEC0
split-complementary
#7F3AC0 #BEC03A #3AC03C
monochromatic
#411E62 #602C91 #7F3AC0 #9D66D1 #BB95DF

Accessibility & contrast

On white

6.42
#7F3AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7F3AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F3AC0
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F3AC0#FFFFFF#000000##FFFFFF
##7F3AC01.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC4
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#725979
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f3ac0;
/* rgb */ color: rgb(127, 58, 192);
/* oklch */ color: oklch(50.8% 0.200 303.5);
Tailwind
colors: {
  custom: {
    50: '#a976d4',
    500: '#7f3ac0',
    950: '#000000',
  },
}
SCSS
$custom: #7f3ac0;
$custom-light: #a976d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f3ac0",
  "rgb": {
    "r": 127,
    "g": 58,
    "b": 192
  },
  "hsl": {
    "h": 270.896,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50809,
    "c": 0.19967,
    "h": 303.5
  },
  "luminance": 0.11344
}

Semantic roles & 50–950 ramp

primary
#7F3AC0
secondary
#AACA8B
accent
#DD4B92
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7F3AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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