#7E5EF5#7E5EF5

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

Color values

HEX#7E5EF5
RGBrgb(126, 94, 245)
HSLhsl(253, 88%, 66%)
HSVhsv(253, 62%, 96%)
CMYKcmyk(48.6%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.73, 49.32, -71.61)
CIE-LCHlch(50.73, 86.95, 304.56°)
OKLaboklab(59.61% 0.0657 -0.2051)
OKLCHoklch(59.61% 0.215 287.8)
XYZxyz(29.0835, 19.0323, 88.5097)
Luminance0.1903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EF5 #D5F55E
analogous
#5E8AF5 #7E5EF5 #CA5EF5
triadic
#7E5EF5 #F57E5E #5EF57E
tetradic
#7E5EF5 #F55E8A #D5F55E #5EF5CA
square
#7E5EF5 #F55E8A #D5F55E #5EF5CA
split-complementary
#7E5EF5 #F5CA5E #8AF55E
monochromatic
#350DCC #5024F1 #7E5EF5 #AC98F9 #DAD1FC

Accessibility & contrast

On white

4.37
#7E5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#7E5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5EF5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EF5#FFFFFF#000000##000000
##7E5EF51.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0075F2
Tritanopia (blue-blind)
#5582A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5ef5;
/* rgb */ color: rgb(126, 94, 245);
/* oklch */ color: oklch(59.6% 0.215 287.8);
Tailwind
colors: {
  custom: {
    50: '#ac8df9',
    500: '#7e5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ef5;
$custom-light: #ac8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ef5",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 252.715,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59612,
    "c": 0.21533,
    "h": 287.8
  },
  "luminance": 0.19034
}

Semantic roles & 50–950 ramp

primary
#7E5EF5
secondary
#E6F0BF
accent
#E501B5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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