#7E5DE2#7E5DE2

#7E5DE2 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.1% C 0.193 H 290.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7E5DE2
RGBrgb(126, 93, 226)
HSLhsl(255, 70%, 63%)
HSVhsv(255, 59%, 89%)
CMYKcmyk(44.2%, 58.8%, 0%, 11.4%)
CIE-LABlab(49.20, 44.56, -63.42)
CIE-LCHlch(49.20, 77.51, 305.09°)
OKLaboklab(58.08% 0.0678 -0.181)
OKLCHoklch(58.08% 0.193 290.5)
XYZxyz(26.2422, 17.7544, 73.9810)
Luminance0.1776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DE2 #C1E25D
analogous
#5D7FE2 #7E5DE2 #C05DE2
triadic
#7E5DE2 #E27E5D #5DE27E
tetradic
#7E5DE2 #E25D7F #C1E25D #5DE2C0
square
#7E5DE2 #E25D7F #C1E25D #5DE2C0
split-complementary
#7E5DE2 #E2C05D #7FE25D
monochromatic
#401EA7 #5529D9 #7E5DE2 #A791EB #D1C5F5

Accessibility & contrast

On white

4.61
#7E5DE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7E5DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DE2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DE2#FFFFFF#000000##FFFFFF
##7E5DE21.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#607B97
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5de2;
/* rgb */ color: rgb(126, 93, 226);
/* oklch */ color: oklch(58.1% 0.193 290.5);
Tailwind
colors: {
  custom: {
    50: '#aa8cec',
    500: '#7e5de2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5de2;
$custom-light: #aa8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5de2",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 226
  },
  "hsl": {
    "h": 254.887,
    "s": 69.634,
    "l": 62.549
  },
  "oklch": {
    "l": 0.58079,
    "c": 0.19324,
    "h": 290.5
  },
  "luminance": 0.17755
}

Semantic roles & 50–950 ramp

primary
#7E5DE2
secondary
#DAE6B5
accent
#D214A3
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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