#7E4DD3#7E4DD3

#7E4DD3 is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.6% C 0.196 H 296.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7E4DD3
RGBrgb(126, 77, 211)
HSLhsl(262, 60%, 56%)
HSVhsv(262, 64%, 83%)
CMYKcmyk(40.3%, 63.5%, 0%, 17.3%)
CIE-LABlab(44.87, 49.28, -61.88)
CIE-LCHlch(44.87, 79.11, 308.53°)
OKLaboklab(54.6% 0.0863 -0.1764)
OKLCHoklch(54.6% 0.196 296.1)
XYZxyz(23.0129, 14.4461, 63.1913)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DD3 #A2D34D
analogous
#4D5FD3 #7E4DD3 #C14DD3
triadic
#7E4DD3 #D37E4D #4DD37E
tetradic
#7E4DD3 #D34D5F #A2D34D #4DD3C1
square
#7E4DD3 #D34D5F #A2D34D #4DD3C1
split-complementary
#7E4DD3 #D3C14D #5FD34D
monochromatic
#452185 #5F2DB6 #7E4DD3 #A27EDF #C5AFEB

Accessibility & contrast

On white

5.40
#7E4DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7E4DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DD3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DD3#FFFFFF#000000##FFFFFF
##7E4DD31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD7
Deuteranopia (green-blind)
#0068D0
Tritanopia (blue-blind)
#686C89
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7e4dd3;
/* rgb */ color: rgb(126, 77, 211);
/* oklch */ color: oklch(54.6% 0.196 296.1);
Tailwind
colors: {
  custom: {
    50: '#a981e1',
    500: '#7e4dd3',
    950: '#000000',
  },
}
SCSS
$custom: #7e4dd3;
$custom-light: #a981e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4dd3",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 211
  },
  "hsl": {
    "h": 261.94,
    "s": 60.36,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54598,
    "c": 0.19643,
    "h": 296.1
  },
  "luminance": 0.14447
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E4DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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