#7E5DFD#7E5DFD

#7E5DFD is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.1% C 0.226 H 287.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E5DFD
RGBrgb(126, 93, 253)
HSLhsl(252, 98%, 68%)
HSVhsv(252, 63%, 99%)
CMYKcmyk(50.2%, 63.2%, 0%, 0.8%)
CIE-LABlab(51.10, 52.13, -75.46)
CIE-LCHlch(51.10, 91.71, 304.64°)
OKLaboklab(60.07% 0.066 -0.2164)
OKLCHoklch(60.07% 0.226 287)
XYZxyz(30.2429, 19.3547, 95.0517)
Luminance0.1936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DFD #DCFD5D
analogous
#5D8CFD #7E5DFD #CE5DFD
triadic
#7E5DFD #FD7E5D #5DFD7E
tetradic
#7E5DFD #FD5D8C #DCFD5D #5DFDCE
square
#7E5DFD #FD5D8C #DCFD5D #5DFDCE
split-complementary
#7E5DFD #FDCE5D #8CFD5D
monochromatic
#3003DD #4E21FC #7E5DFD #AE99FE #DED6FE

Accessibility & contrast

On white

4.31
#7E5DFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#7E5DFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DFD
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DFD#FFFFFF#000000##000000
##7E5DFD1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFF
Deuteranopia (green-blind)
#0075FA
Tritanopia (blue-blind)
#4F84A5
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #7e5dfd;
/* rgb */ color: rgb(126, 93, 253);
/* oklch */ color: oklch(60.1% 0.226 287.0);
Tailwind
colors: {
  custom: {
    50: '#ad8dff',
    500: '#7e5dfd',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dfd;
$custom-light: #ad8dff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dfd",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 253
  },
  "hsl": {
    "h": 252.375,
    "s": 97.561,
    "l": 67.843
  },
  "oklch": {
    "l": 0.60066,
    "c": 0.22622,
    "h": 287
  },
  "luminance": 0.19356
}

Semantic roles & 50–950 ramp

primary
#7E5DFD
secondary
#E9F4C2
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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