#7E5EF7#7E5EF7

#7E5EF7 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.218 H 287.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E5EF7
RGBrgb(126, 94, 247)
HSLhsl(253, 91%, 67%)
HSVhsv(253, 62%, 97%)
CMYKcmyk(49%, 61.9%, 0%, 3.1%)
CIE-LABlab(50.87, 49.89, -72.49)
CIE-LCHlch(50.87, 88.00, 304.53°)
OKLaboklab(59.76% 0.0656 -0.2077)
OKLCHoklch(59.76% 0.218 287.5)
XYZxyz(29.3905, 19.1551, 90.1263)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EF7 #D7F75E
analogous
#5E8BF7 #7E5EF7 #CB5EF7
triadic
#7E5EF7 #F77E5E #5EF77E
tetradic
#7E5EF7 #F75E8B #D7F75E #5EF7CB
square
#7E5EF7 #F75E8B #D7F75E #5EF7CB
split-complementary
#7E5EF7 #F7CB5E #8BF75E
monochromatic
#340AD0 #4F24F4 #7E5EF7 #AD98FA #DBD3FD

Accessibility & contrast

On white

4.35
#7E5EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7E5EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5EF7
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EF7#FFFFFF#000000##000000
##7E5EF71.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFC
Deuteranopia (green-blind)
#0075F4
Tritanopia (blue-blind)
#5383A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5ef7;
/* rgb */ color: rgb(126, 94, 247);
/* oklch */ color: oklch(59.8% 0.218 287.5);
Tailwind
colors: {
  custom: {
    50: '#ac8dfb',
    500: '#7e5ef7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ef7;
$custom-light: #ac8dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ef7",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 252.549,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59761,
    "c": 0.21777,
    "h": 287.5
  },
  "luminance": 0.19156
}

Semantic roles & 50–950 ramp

primary
#7E5EF7
secondary
#E7F1C0
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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