#7E5DEF#7E5DEF

#7E5DEF is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.0% C 0.209 H 288.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7E5DEF
RGBrgb(126, 93, 239)
HSLhsl(254, 82%, 65%)
HSVhsv(254, 61%, 94%)
CMYKcmyk(47.3%, 61.1%, 0%, 6.3%)
CIE-LABlab(50.09, 48.19, -69.29)
CIE-LCHlch(50.09, 84.40, 304.82°)
OKLaboklab(59.02% 0.0672 -0.1982)
OKLCHoklch(59.02% 0.209 288.7)
XYZxyz(28.0940, 18.4952, 83.7343)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DEF #CEEF5D
analogous
#5D85EF #7E5DEF #C75DEF
triadic
#7E5DEF #EF7E5D #5DEF7E
tetradic
#7E5DEF #EF5D85 #CEEF5D #5DEFC7
square
#7E5DEF #EF5D85 #CEEF5D #5DEFC7
split-complementary
#7E5DEF #EFC75D #85EF5D
monochromatic
#3A13BF #5225E9 #7E5DEF #AA95F5 #D7CCFA

Accessibility & contrast

On white

4.47
#7E5DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7E5DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DEF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DEF#FFFFFF#000000##000000
##7E5DEF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF4
Deuteranopia (green-blind)
#0073EC
Tritanopia (blue-blind)
#597F9D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5def;
/* rgb */ color: rgb(126, 93, 239);
/* oklch */ color: oklch(59.0% 0.209 288.7);
Tailwind
colors: {
  custom: {
    50: '#ab8cf5',
    500: '#7e5def',
    950: '#000000',
  },
}
SCSS
$custom: #7e5def;
$custom-light: #ab8cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5def",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 253.562,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.59016,
    "c": 0.20929,
    "h": 288.7
  },
  "luminance": 0.18496
}

Semantic roles & 50–950 ramp

primary
#7E5DEF
secondary
#E1EDBB
accent
#DE07AE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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