#7E4CD3#7E4CD3

#7E4CD3 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.5% C 0.198 H 296.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#7E4CD3
RGBrgb(126, 76, 211)
HSLhsl(262, 61%, 56%)
HSVhsv(262, 64%, 83%)
CMYKcmyk(40.3%, 64%, 0%, 17.3%)
CIE-LABlab(44.67, 49.81, -62.20)
CIE-LCHlch(44.67, 79.69, 308.69°)
OKLaboklab(54.46% 0.0874 -0.1774)
OKLCHoklch(54.46% 0.198 296.2)
XYZxyz(22.9434, 14.3072, 63.1681)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4CD3 #A1D34C
analogous
#4C5ED3 #7E4CD3 #C24CD3
triadic
#7E4CD3 #D37E4C #4CD37E
tetradic
#7E4CD3 #D34C5E #A1D34C #4CD3C2
square
#7E4CD3 #D34C5E #A1D34C #4CD3C2
split-complementary
#7E4CD3 #D3C24C #5ED34C
monochromatic
#452084 #5F2DB5 #7E4CD3 #A17DDF #C5AEEB

Accessibility & contrast

On white

5.44
#7E4CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#7E4CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4CD3
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4CD3#FFFFFF#000000##FFFFFF
##7E4CD31.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD7
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#696B89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4cd3;
/* rgb */ color: rgb(126, 76, 211);
/* oklch */ color: oklch(54.5% 0.198 296.2);
Tailwind
colors: {
  custom: {
    50: '#a981e1',
    500: '#7e4cd3',
    950: '#000000',
  },
}
SCSS
$custom: #7e4cd3;
$custom-light: #a981e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4cd3",
  "rgb": {
    "r": 126,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 262.222,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54456,
    "c": 0.19775,
    "h": 296.2
  },
  "luminance": 0.14308
}

Semantic roles & 50–950 ramp

primary
#7E4CD3
secondary
#C5D9A2
accent
#E444A9
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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