#7E5DF4#7E5DF4

#7E5DF4 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.215 H 288.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#7E5DF4
RGBrgb(126, 93, 244)
HSLhsl(253, 87%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.4%, 61.9%, 0%, 4.3%)
CIE-LABlab(50.45, 49.59, -71.51)
CIE-LCHlch(50.45, 87.02, 304.74°)
OKLaboklab(59.39% 0.0668 -0.2047)
OKLCHoklch(59.39% 0.215 288.1)
XYZxyz(28.8429, 18.7947, 87.6784)
Luminance0.1880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DF4 #D3F45D
analogous
#5D87F4 #7E5DF4 #CA5DF4
triadic
#7E5DF4 #F47E5D #5DF47E
tetradic
#7E5DF4 #F45D87 #D3F45D #5DF4CA
square
#7E5DF4 #F45D87 #D3F45D #5DF4CA
split-complementary
#7E5DF4 #F4CA5D #87F45D
monochromatic
#370EC9 #5024F0 #7E5DF4 #AC96F8 #D9D0FC

Accessibility & contrast

On white

4.41
#7E5DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#7E5DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5DF4
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DF4#FFFFFF#000000##000000
##7E5DF41.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF9
Deuteranopia (green-blind)
#0074F1
Tritanopia (blue-blind)
#5581A0
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5df4;
/* rgb */ color: rgb(126, 93, 244);
/* oklch */ color: oklch(59.4% 0.215 288.1);
Tailwind
colors: {
  custom: {
    50: '#ac8cf9',
    500: '#7e5df4',
    950: '#000000',
  },
}
SCSS
$custom: #7e5df4;
$custom-light: #ac8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5df4",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 244
  },
  "hsl": {
    "h": 253.113,
    "s": 87.283,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59386,
    "c": 0.21537,
    "h": 288.1
  },
  "luminance": 0.18796
}

Semantic roles & 50–950 ramp

primary
#7E5DF4
secondary
#E4EFBE
accent
#E402B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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