#7E5DE6#7E5DE6

#7E5DE6 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.4% C 0.198 H 290.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7E5DE6
RGBrgb(126, 93, 230)
HSLhsl(254, 73%, 63%)
HSVhsv(254, 60%, 90%)
CMYKcmyk(45.2%, 59.6%, 0%, 9.8%)
CIE-LABlab(49.47, 45.67, -65.24)
CIE-LCHlch(49.47, 79.64, 305.00°)
OKLaboklab(58.36% 0.0676 -0.1863)
OKLCHoklch(58.36% 0.198 290)
XYZxyz(26.7974, 17.9765, 76.9054)
Luminance0.1798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DE6 #C5E65D
analogous
#5D80E6 #7E5DE6 #C35DE6
triadic
#7E5DE6 #E67E5D #5DE67E
tetradic
#7E5DE6 #E65D80 #C5E65D #5DE6C3
square
#7E5DE6 #E65D80 #C5E65D #5DE6C3
split-complementary
#7E5DE6 #E6C35D #80E65D
monochromatic
#3E1BAE #5428DE #7E5DE6 #A892EE #D2C7F6

Accessibility & contrast

On white

4.57
#7E5DE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7E5DE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DE6
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DE6#FFFFFF#000000##000000
##7E5DE61.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#5E7C99
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5de6;
/* rgb */ color: rgb(126, 93, 230);
/* oklch */ color: oklch(58.4% 0.198 290.0);
Tailwind
colors: {
  custom: {
    50: '#aa8cef',
    500: '#7e5de6',
    950: '#000000',
  },
}
SCSS
$custom: #7e5de6;
$custom-light: #aa8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5de6",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 230
  },
  "hsl": {
    "h": 254.453,
    "s": 73.262,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58363,
    "c": 0.19822,
    "h": 290
  },
  "luminance": 0.17977
}

Semantic roles & 50–950 ramp

primary
#7E5DE6
secondary
#DCE8B7
accent
#D510A6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5DE6

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

Preview Lab → · Contrast checker → · Palette generator →

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