#7E3ABC#7E3ABC

#7E3ABC is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.4% C 0.195 H 304.1°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7E3ABC
RGBrgb(126, 58, 188)
HSLhsl(271, 53%, 48%)
HSVhsv(271, 69%, 74%)
CMYKcmyk(33%, 69.1%, 0%, 26.3%)
CIE-LABlab(39.74, 53.10, -56.85)
CIE-LCHlch(39.74, 77.79, 313.04°)
OKLaboklab(50.39% 0.1095 -0.1616)
OKLCHoklch(50.39% 0.195 304.1)
XYZxyz(19.1923, 11.0926, 48.6972)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ABC #78BC3A
analogous
#3D3ABC #7E3ABC #BC3AB9
triadic
#7E3ABC #BC7E3A #3ABC7E
tetradic
#7E3ABC #BC3D3A #78BC3A #3AB9BC
square
#7E3ABC #BC3D3A #78BC3A #3AB9BC
split-complementary
#7E3ABC #B9BC3A #3ABC3D
monochromatic
#3F1D5E #5F2C8D #7E3ABC #9C64CF #BA93DE

Accessibility & contrast

On white

6.52
#7E3ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7E3ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ABC
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ABC#FFFFFF#000000##FFFFFF
##7E3ABC1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#725877
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e3abc;
/* rgb */ color: rgb(126, 58, 188);
/* oklch */ color: oklch(50.4% 0.195 304.1);
Tailwind
colors: {
  custom: {
    50: '#a875d1',
    500: '#7e3abc',
    950: '#000000',
  },
}
SCSS
$custom: #7e3abc;
$custom-light: #a875d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3abc",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 188
  },
  "hsl": {
    "h": 271.385,
    "s": 52.846,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50392,
    "c": 0.1952,
    "h": 304.1
  },
  "luminance": 0.11093
}

Semantic roles & 50–950 ramp

primary
#7E3ABC
secondary
#A7C989
accent
#DC4C91
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E3ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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