#7E4DE1#7E4DE1

#7E4DE1 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.6% C 0.213 H 293.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7E4DE1
RGBrgb(126, 77, 225)
HSLhsl(260, 71%, 59%)
HSVhsv(260, 66%, 88%)
CMYKcmyk(44%, 65.8%, 0%, 11.8%)
CIE-LABlab(45.88, 52.98, -68.23)
CIE-LCHlch(45.88, 86.38, 307.83°)
OKLaboklab(55.65% 0.0848 -0.1951)
OKLCHoklch(55.65% 0.213 293.5)
XYZxyz(24.8450, 15.1789, 72.8404)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DE1 #B0E14D
analogous
#4D66E1 #7E4DE1 #C84DE1
triadic
#7E4DE1 #E17E4D #4DE17E
tetradic
#7E4DE1 #E14D66 #B0E14D #4DE1C8
square
#7E4DE1 #E14D66 #B0E14D #4DE1C8
split-complementary
#7E4DE1 #E1C84D #66E14D
monochromatic
#441A9A #5B23CE #7E4DE1 #A481EA #CAB6F3

Accessibility & contrast

On white

5.20
#7E4DE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7E4DE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DE1
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DE1#FFFFFF#000000##FFFFFF
##7E4DE11.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE6
Deuteranopia (green-blind)
#006ADE
Tritanopia (blue-blind)
#627191
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e4de1;
/* rgb */ color: rgb(126, 77, 225);
/* oklch */ color: oklch(55.6% 0.213 293.5);
Tailwind
colors: {
  custom: {
    50: '#ab82eb',
    500: '#7e4de1',
    950: '#000000',
  },
}
SCSS
$custom: #7e4de1;
$custom-light: #ab82eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4de1",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 225
  },
  "hsl": {
    "h": 259.865,
    "s": 71.154,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55647,
    "c": 0.21275,
    "h": 293.5
  },
  "luminance": 0.1518
}

Semantic roles & 50–950 ramp

primary
#7E4DE1
secondary
#CFE2A8
accent
#EE3AB2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E4DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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