#7E5EF2#7E5EF2

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

Color values

HEX#7E5EF2
RGBrgb(126, 94, 242)
HSLhsl(253, 85%, 66%)
HSVhsv(253, 61%, 95%)
CMYKcmyk(47.9%, 61.2%, 0%, 5.1%)
CIE-LABlab(50.51, 48.48, -70.28)
CIE-LCHlch(50.51, 85.38, 304.60°)
OKLaboklab(59.39% 0.0659 -0.2011)
OKLCHoklch(59.39% 0.212 288.1)
XYZxyz(28.6293, 18.8506, 86.1172)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EF2 #D2F25E
analogous
#5E88F2 #7E5EF2 #C85EF2
triadic
#7E5EF2 #F27E5E #5EF27E
tetradic
#7E5EF2 #F25E88 #D2F25E #5EF2C8
square
#7E5EF2 #F25E88 #D2F25E #5EF2C8
split-complementary
#7E5EF2 #F2C85E #88F25E
monochromatic
#3710C6 #5125ED #7E5EF2 #AB97F7 #D9CFFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E5EF2#FFFFFF#000000##000000
##7E5EF21.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)
#007CF7
Deuteranopia (green-blind)
#0074EF
Tritanopia (blue-blind)
#57819F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5ef2;
/* rgb */ color: rgb(126, 94, 242);
/* oklch */ color: oklch(59.4% 0.212 288.1);
Tailwind
colors: {
  custom: {
    50: '#ac8df7',
    500: '#7e5ef2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ef2;
$custom-light: #ac8df7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ef2",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 252.973,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5939,
    "c": 0.21168,
    "h": 288.1
  },
  "luminance": 0.18852
}

Semantic roles & 50–950 ramp

primary
#7E5EF2
secondary
#E4EEBD
accent
#E204B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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