#7E5DEB#7E5DEB

#7E5DEB is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.7% C 0.204 H 289.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7E5DEB
RGBrgb(126, 93, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 60%, 92%)
CMYKcmyk(46.4%, 60.4%, 0%, 7.8%)
CIE-LABlab(49.81, 47.07, -67.49)
CIE-LCHlch(49.81, 82.29, 304.89°)
OKLaboklab(58.72% 0.0674 -0.1929)
OKLCHoklch(58.72% 0.204 289.3)
XYZxyz(27.5097, 18.2614, 80.6565)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DEB #CAEB5D
analogous
#5D83EB #7E5DEB #C55DEB
triadic
#7E5DEB #EB7E5D #5DEB7E
tetradic
#7E5DEB #EB5D83 #CAEB5D #5DEBC5
square
#7E5DEB #EB5D83 #CAEB5D #5DEBC5
split-complementary
#7E5DEB #EBC55D #83EB5D
monochromatic
#3C17B7 #5327E4 #7E5DEB #A993F2 #D5CAF8

Accessibility & contrast

On white

4.51
#7E5DEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7E5DEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DEB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DEB#FFFFFF#000000##000000
##7E5DEB1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#5B7E9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5deb;
/* rgb */ color: rgb(126, 93, 235);
/* oklch */ color: oklch(58.7% 0.204 289.3);
Tailwind
colors: {
  custom: {
    50: '#ab8cf2',
    500: '#7e5deb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5deb;
$custom-light: #ab8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5deb",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 253.944,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58724,
    "c": 0.20438,
    "h": 289.3
  },
  "luminance": 0.18262
}

Semantic roles & 50–950 ramp

primary
#7E5DEB
secondary
#DFEBB9
accent
#DA0BAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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