#7E3AC0#7E3AC0

#7E3AC0 is a mid, vivid violet. Relative luminance 0.113; OKLCH L 50.7% C 0.199 H 303.1°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#7E3AC0
RGBrgb(126, 58, 192)
HSLhsl(270, 54%, 49%)
HSVhsv(270, 70%, 75%)
CMYKcmyk(34.4%, 69.8%, 0%, 24.7%)
CIE-LABlab(40.03, 54.05, -58.72)
CIE-LCHlch(40.03, 79.81, 312.63°)
OKLaboklab(50.69% 0.1089 -0.1671)
OKLCHoklch(50.69% 0.199 303.1)
XYZxyz(19.6294, 11.2675, 50.9997)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AC0 #7CC03A
analogous
#3B3AC0 #7E3AC0 #C03ABF
triadic
#7E3AC0 #C07E3A #3AC07E
tetradic
#7E3AC0 #C03B3A #7CC03A #3ABFC0
square
#7E3AC0 #C03B3A #7CC03A #3ABFC0
split-complementary
#7E3AC0 #BFC03A #3AC03B
monochromatic
#401E62 #5F2C91 #7E3AC0 #9C66D1 #BB95DF

Accessibility & contrast

On white

6.45
#7E3AC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#7E3AC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AC0
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AC0#FFFFFF#000000##FFFFFF
##7E3AC01.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e3ac0;
/* rgb */ color: rgb(126, 58, 192);
/* oklch */ color: oklch(50.7% 0.199 303.1);
Tailwind
colors: {
  custom: {
    50: '#a976d4',
    500: '#7e3ac0',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ac0;
$custom-light: #a976d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ac0",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 192
  },
  "hsl": {
    "h": 270.448,
    "s": 53.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50692,
    "c": 0.19945,
    "h": 303.1
  },
  "luminance": 0.11268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E3AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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