#7E5DE7#7E5DE7

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

Color values

HEX#7E5DE7
RGBrgb(126, 93, 231)
HSLhsl(254, 74%, 64%)
HSVhsv(254, 60%, 91%)
CMYKcmyk(45.5%, 59.7%, 0%, 9.4%)
CIE-LABlab(49.54, 45.95, -65.69)
CIE-LCHlch(49.54, 80.17, 304.97°)
OKLaboklab(58.44% 0.0676 -0.1876)
OKLCHoklch(58.44% 0.199 289.8)
XYZxyz(26.9383, 18.0328, 77.6471)
Luminance0.1803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DE7 #C6E75D
analogous
#5D81E7 #7E5DE7 #C35DE7
triadic
#7E5DE7 #E77E5D #5DE77E
tetradic
#7E5DE7 #E75D81 #C6E75D #5DE7C3
square
#7E5DE7 #E75D81 #C6E75D #5DE7C3
split-complementary
#7E5DE7 #E7C35D #81E75D
monochromatic
#3E1AB0 #5428DF #7E5DE7 #A892EF #D3C8F7

Accessibility & contrast

On white

4.56
#7E5DE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7E5DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DE7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DE7#FFFFFF#000000##000000
##7E5DE71.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#0073E4
Tritanopia (blue-blind)
#5D7D99
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5de7;
/* rgb */ color: rgb(126, 93, 231);
/* oklch */ color: oklch(58.4% 0.199 289.8);
Tailwind
colors: {
  custom: {
    50: '#aa8cef',
    500: '#7e5de7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5de7;
$custom-light: #aa8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5de7",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 254.348,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58435,
    "c": 0.19945,
    "h": 289.8
  },
  "luminance": 0.18034
}

Semantic roles & 50–950 ramp

primary
#7E5DE7
secondary
#DDE8B7
accent
#D60FA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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