#7E4DE2#7E4DE2

#7E4DE2 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.214 H 293.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7E4DE2
RGBrgb(126, 77, 226)
HSLhsl(260, 72%, 59%)
HSVhsv(260, 66%, 89%)
CMYKcmyk(44.2%, 65.9%, 0%, 11.4%)
CIE-LABlab(45.95, 53.24, -68.68)
CIE-LCHlch(45.95, 86.90, 307.79°)
OKLaboklab(55.72% 0.0847 -0.1964)
OKLCHoklch(55.72% 0.214 293.3)
XYZxyz(24.9818, 15.2336, 73.5609)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4DE2 #B1E24D
analogous
#4D66E2 #7E4DE2 #C94DE2
triadic
#7E4DE2 #E27E4D #4DE27E
tetradic
#7E4DE2 #E24D66 #B1E24D #4DE2C9
square
#7E4DE2 #E24D66 #B1E24D #4DE2C9
split-complementary
#7E4DE2 #E2C94D #66E24D
monochromatic
#44199B #5B22D0 #7E4DE2 #A482EB #CAB6F3

Accessibility & contrast

On white

5.19
#7E4DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7E4DE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4DE2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4DE2#FFFFFF#000000##FFFFFF
##7E4DE21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#617191
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e4de2;
/* rgb */ color: rgb(126, 77, 226);
/* oklch */ color: oklch(55.7% 0.214 293.3);
Tailwind
colors: {
  custom: {
    50: '#ab82ec',
    500: '#7e4de2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4de2;
$custom-light: #ab82ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4de2",
  "rgb": {
    "r": 126,
    "g": 77,
    "b": 226
  },
  "hsl": {
    "h": 259.732,
    "s": 71.981,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55723,
    "c": 0.21391,
    "h": 293.3
  },
  "luminance": 0.15234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E4DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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