#7E5DEC#7E5DEC

#7E5DEC is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.8% C 0.206 H 289.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7E5DEC
RGBrgb(126, 93, 236)
HSLhsl(254, 79%, 65%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(46.6%, 60.6%, 0%, 7.5%)
CIE-LABlab(49.88, 47.35, -67.94)
CIE-LCHlch(49.88, 82.81, 304.87°)
OKLaboklab(58.8% 0.0673 -0.1943)
OKLCHoklch(58.8% 0.206 289.1)
XYZxyz(27.6545, 18.3194, 81.4195)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DEC #CBEC5D
analogous
#5D84EC #7E5DEC #C65DEC
triadic
#7E5DEC #EC7E5D #5DEC7E
tetradic
#7E5DEC #EC5D84 #CBEC5D #5DECC6
square
#7E5DEC #EC5D84 #CBEC5D #5DECC6
split-complementary
#7E5DEC #ECC65D #84EC5D
monochromatic
#3B16B9 #5226E6 #7E5DEC #AA94F2 #D5CBF9

Accessibility & contrast

On white

4.50
#7E5DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#7E5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DEC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DEC#FFFFFF#000000##000000
##7E5DEC1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#5B7E9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5dec;
/* rgb */ color: rgb(126, 93, 236);
/* oklch */ color: oklch(58.8% 0.206 289.1);
Tailwind
colors: {
  custom: {
    50: '#ab8cf3',
    500: '#7e5dec',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dec;
$custom-light: #ab8cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dec",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 253.846,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58797,
    "c": 0.20562,
    "h": 289.1
  },
  "luminance": 0.1832
}

Semantic roles & 50–950 ramp

primary
#7E5DEC
secondary
#E0EBBA
accent
#DB0AAB
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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