#7E4DD2#7E4DD2

#7E4DD2 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.5% C 0.195 H 296.3°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#7E4DD2
RGBrgb(126, 77, 210)
HSLhsl(262, 60%, 56%)
HSVhsv(262, 63%, 82%)
CMYKcmyk(40%, 63.3%, 0%, 17.6%)
CIE-LABlab(44.80, 49.02, -61.42)
CIE-LCHlch(44.80, 78.59, 308.59°)
OKLaboklab(54.53% 0.0864 -0.1751)
OKLCHoklch(54.53% 0.195 296.3)
XYZxyz(22.8879, 14.3961, 62.5331)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DD2 #A1D24D
analogous
#4D5FD2 #7E4DD2 #C04DD2
triadic
#7E4DD2 #D27E4D #4DD27E
tetradic
#7E4DD2 #D24D5F #A1D24D #4DD2C0
square
#7E4DD2 #D24D5F #A1D24D #4DD2C0
split-complementary
#7E4DD2 #D2C04D #5FD24D
monochromatic
#452183 #5F2EB4 #7E4DD2 #A17EDE #C5AFEB

Accessibility & contrast

On white

5.41
#7E4DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7E4DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DD2
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DD2#FFFFFF#000000##FFFFFF
##7E4DD21.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#0068CF
Tritanopia (blue-blind)
#696B88
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4dd2;
/* rgb */ color: rgb(126, 77, 210);
/* oklch */ color: oklch(54.5% 0.195 296.3);
Tailwind
colors: {
  custom: {
    50: '#a981e1',
    500: '#7e4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dd2;
$custom-light: #a981e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dd2",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 262.105,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54525,
    "c": 0.19526,
    "h": 296.3
  },
  "luminance": 0.14397
}

Semantic roles & 50–950 ramp

primary
#7E4DD2
secondary
#C5D9A2
accent
#E345A9
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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