#7E4DD5#7E4DD5

#7E4DD5 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.7% C 0.199 H 295.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#7E4DD5
RGBrgb(126, 77, 213)
HSLhsl(262, 62%, 57%)
HSVhsv(262, 64%, 84%)
CMYKcmyk(40.8%, 63.8%, 0%, 16.5%)
CIE-LABlab(45.01, 49.81, -62.80)
CIE-LCHlch(45.01, 80.15, 308.42°)
OKLaboklab(54.75% 0.0861 -0.1791)
OKLCHoklch(54.75% 0.199 295.7)
XYZxyz(23.2651, 14.5470, 64.5200)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DD5 #A4D54D
analogous
#4D60D5 #7E4DD5 #C24DD5
triadic
#7E4DD5 #D57E4D #4DD57E
tetradic
#7E4DD5 #D54D60 #A4D54D #4DD5C2
square
#7E4DD5 #D54D60 #A4D54D #4DD5C2
split-complementary
#7E4DD5 #D5C24D #60D54D
monochromatic
#452088 #5F2CB9 #7E4DD5 #A27FE1 #C6B0EC

Accessibility & contrast

On white

5.37
#7E4DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7E4DD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DD5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DD5#FFFFFF#000000##FFFFFF
##7E4DD51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#0069D2
Tritanopia (blue-blind)
#686C8A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4dd5;
/* rgb */ color: rgb(126, 77, 213);
/* oklch */ color: oklch(54.7% 0.199 295.7);
Tailwind
colors: {
  custom: {
    50: '#a981e3',
    500: '#7e4dd5',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dd5;
$custom-light: #a981e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dd5",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 213
  },
  "hsl": {
    "h": 261.618,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.54745,
    "c": 0.19878,
    "h": 295.7
  },
  "luminance": 0.14547
}

Semantic roles & 50–950 ramp

primary
#7E4DD5
secondary
#C7DBA3
accent
#E543AB
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7E4DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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