#7E50E2#7E50E2

#7E50E2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.1% C 0.210 H 292.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7E50E2
RGBrgb(126, 80, 226)
HSLhsl(259, 72%, 60%)
HSVhsv(259, 65%, 89%)
CMYKcmyk(44.2%, 64.6%, 0%, 11.4%)
CIE-LABlab(46.53, 51.67, -67.74)
CIE-LCHlch(46.53, 85.20, 307.34°)
OKLaboklab(56.14% 0.0817 -0.1937)
OKLCHoklch(56.14% 0.21 292.9)
XYZxyz(25.1965, 15.6632, 73.6325)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E50E2 #B4E250
analogous
#506BE2 #7E50E2 #C750E2
triadic
#7E50E2 #E27E50 #50E27E
tetradic
#7E50E2 #E2506B #B4E250 #50E2C7
square
#7E50E2 #E2506B #B4E250 #50E2C7
split-complementary
#7E50E2 #E2C750 #6BE250
monochromatic
#431A9E #5A23D2 #7E50E2 #A584EB #CBB9F3

Accessibility & contrast

On white

5.08
#7E50E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7E50E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E50E2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E50E2#FFFFFF#000000##FFFFFF
##7E50E21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#617392
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e50e2;
/* rgb */ color: rgb(126, 80, 226);
/* oklch */ color: oklch(56.1% 0.210 292.9);
Tailwind
colors: {
  custom: {
    50: '#ab84ec',
    500: '#7e50e2',
    950: '#000000',
  },
}
SCSS
$custom: #7e50e2;
$custom-light: #ab84ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e50e2",
  "rgb": {
    "r": 126,
    "g": 80,
    "b": 226
  },
  "hsl": {
    "h": 258.904,
    "s": 71.569,
    "l": 60
  },
  "oklch": {
    "l": 0.56139,
    "c": 0.21019,
    "h": 292.9
  },
  "luminance": 0.15664
}

Semantic roles & 50–950 ramp

primary
#7E50E2
secondary
#D1E3AB
accent
#EE39B5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E50E2

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

Preview Lab → · Contrast checker → · Palette generator →

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