#7E3ABB#7E3ABB

#7E3ABB is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.3% C 0.194 H 304.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#7E3ABB
RGBrgb(126, 58, 187)
HSLhsl(272, 53%, 48%)
HSVhsv(272, 69%, 73%)
CMYKcmyk(32.6%, 69%, 0%, 26.7%)
CIE-LABlab(39.66, 52.86, -56.38)
CIE-LCHlch(39.66, 77.28, 313.15°)
OKLaboklab(50.32% 0.1096 -0.1602)
OKLCHoklch(50.32% 0.194 304.4)
XYZxyz(19.0849, 11.0497, 48.1314)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ABB #77BB3A
analogous
#3D3ABB #7E3ABB #BB3AB7
triadic
#7E3ABB #BB7E3A #3ABB7E
tetradic
#7E3ABB #BB3D3A #77BB3A #3AB7BB
square
#7E3ABB #BB3D3A #77BB3A #3AB7BB
split-complementary
#7E3ABB #B7BB3A #3ABB3D
monochromatic
#3F1D5E #5F2C8C #7E3ABB #9C63CF #BA92DD

Accessibility & contrast

On white

6.54
#7E3ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#7E3ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ABB
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ABB#FFFFFF#000000##FFFFFF
##7E3ABB1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#735776
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e3abb;
/* rgb */ color: rgb(126, 58, 187);
/* oklch */ color: oklch(50.3% 0.194 304.4);
Tailwind
colors: {
  custom: {
    50: '#a875d0',
    500: '#7e3abb',
    950: '#000000',
  },
}
SCSS
$custom: #7e3abb;
$custom-light: #a875d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3abb",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 187
  },
  "hsl": {
    "h": 271.628,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50318,
    "c": 0.19413,
    "h": 304.4
  },
  "luminance": 0.1105
}

Semantic roles & 50–950 ramp

primary
#7E3ABB
secondary
#A7C888
accent
#DC4C90
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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