#7E5DF5#7E5DF5

#7E5DF5 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.217 H 287.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7E5DF5
RGBrgb(126, 93, 245)
HSLhsl(253, 88%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.6%, 62%, 0%, 3.9%)
CIE-LABlab(50.52, 49.87, -71.95)
CIE-LCHlch(50.52, 87.54, 304.73°)
OKLaboklab(59.46% 0.0667 -0.206)
OKLCHoklch(59.46% 0.217 287.9)
XYZxyz(28.9952, 18.8556, 88.4802)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DF5 #D4F55D
analogous
#5D88F5 #7E5DF5 #CA5DF5
triadic
#7E5DF5 #F57E5D #5DF57E
tetradic
#7E5DF5 #F55D88 #D4F55D #5DF5CA
square
#7E5DF5 #F55D88 #D4F55D #5DF5CA
split-complementary
#7E5DF5 #F5CA5D #88F55D
monochromatic
#360DCB #5023F1 #7E5DF5 #AC97F9 #DAD0FC

Accessibility & contrast

On white

4.40
#7E5DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7E5DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DF5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DF5#FFFFFF#000000##000000
##7E5DF51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#5581A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5df5;
/* rgb */ color: rgb(126, 93, 245);
/* oklch */ color: oklch(59.5% 0.217 287.9);
Tailwind
colors: {
  custom: {
    50: '#ac8cf9',
    500: '#7e5df5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5df5;
$custom-light: #ac8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5df5",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 245
  },
  "hsl": {
    "h": 253.026,
    "s": 88.372,
    "l": 66.275
  },
  "oklch": {
    "l": 0.59461,
    "c": 0.21658,
    "h": 287.9
  },
  "luminance": 0.18857
}

Semantic roles & 50–950 ramp

primary
#7E5DF5
secondary
#E5F0BE
accent
#E501B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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