#7E3AD5#7E3AD5

#7E3AD5 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.3% C 0.222 H 298.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7E3AD5
RGBrgb(126, 58, 213)
HSLhsl(266, 65%, 53%)
HSVhsv(266, 73%, 84%)
CMYKcmyk(40.8%, 72.8%, 0%, 16.5%)
CIE-LABlab(41.63, 59.15, -68.29)
CIE-LCHlch(41.63, 90.34, 310.90°)
OKLaboklab(52.33% 0.105 -0.1952)
OKLCHoklch(52.33% 0.222 298.3)
XYZxyz(22.1244, 12.2655, 64.1397)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3AD5 #91D53A
analogous
#3A43D5 #7E3AD5 #CC3AD5
triadic
#7E3AD5 #D57E3A #3AD57E
tetradic
#7E3AD5 #D53A43 #91D53A #3AD5CC
square
#7E3AD5 #D53A43 #91D53A #3AD5CC
split-complementary
#7E3AD5 #D5CC3A #43D53A
monochromatic
#441A7A #6125AD #7E3AD5 #9F6CE0 #C09FEB

Accessibility & contrast

On white

6.08
#7E3AD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E3AD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3AD5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3AD5#FFFFFF#000000##FFFFFF
##7E3AD51.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0061D2
Tritanopia (blue-blind)
#686284
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e3ad5;
/* rgb */ color: rgb(126, 58, 213);
/* oklch */ color: oklch(52.3% 0.222 298.3);
Tailwind
colors: {
  custom: {
    50: '#ab76e3',
    500: '#7e3ad5',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ad5;
$custom-light: #ab76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ad5",
  "rgb": {
    "r": 126,
    "g": 58,
    "b": 213
  },
  "hsl": {
    "h": 266.323,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.22166,
    "h": 298.3
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#7E3AD5
secondary
#B9D794
accent
#E8409E
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E3AD5

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

Preview Lab → · Contrast checker → · Palette generator →

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