#7E5DF7#7E5DF7

#7E5DF7 is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.6% C 0.219 H 287.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7E5DF7
RGBrgb(126, 93, 247)
HSLhsl(253, 91%, 67%)
HSVhsv(253, 62%, 97%)
CMYKcmyk(49%, 62.3%, 0%, 3.1%)
CIE-LABlab(50.66, 50.44, -72.83)
CIE-LCHlch(50.66, 88.59, 304.70°)
OKLaboklab(59.61% 0.0666 -0.2086)
OKLCHoklch(59.61% 0.219 287.7)
XYZxyz(29.3021, 18.9784, 90.0969)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DF7 #D6F75D
analogous
#5D89F7 #7E5DF7 #CB5DF7
triadic
#7E5DF7 #F77E5D #5DF77E
tetradic
#7E5DF7 #F75D89 #D6F75D #5DF7CB
square
#7E5DF7 #F75D89 #D6F75D #5DF7CB
split-complementary
#7E5DF7 #F7CB5D #89F75D
monochromatic
#340ACF #5023F4 #7E5DF7 #AC97FA #DBD2FD

Accessibility & contrast

On white

4.38
#7E5DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7E5DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DF7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DF7#FFFFFF#000000##000000
##7E5DF71.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFC
Deuteranopia (green-blind)
#0074F4
Tritanopia (blue-blind)
#5382A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5df7;
/* rgb */ color: rgb(126, 93, 247);
/* oklch */ color: oklch(59.6% 0.219 287.7);
Tailwind
colors: {
  custom: {
    50: '#ac8cfb',
    500: '#7e5df7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5df7;
$custom-light: #ac8cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5df7",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 247
  },
  "hsl": {
    "h": 252.857,
    "s": 90.588,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59611,
    "c": 0.21901,
    "h": 287.7
  },
  "luminance": 0.1898
}

Semantic roles & 50–950 ramp

primary
#7E5DF7
secondary
#E6F1BF
accent
#E600B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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