#7E5DCA#7E5DCA

#7E5DCA is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.163 H 294.6°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7E5DCA
RGBrgb(126, 93, 202)
HSLhsl(258, 51%, 58%)
HSVhsv(258, 54%, 79%)
CMYKcmyk(37.6%, 54%, 0%, 20.8%)
CIE-LABlab(47.66, 37.98, -52.21)
CIE-LCHlch(47.66, 64.56, 306.03°)
OKLaboklab(56.46% 0.0677 -0.148)
OKLCHoklch(56.46% 0.163 294.6)
XYZxyz(23.1764, 16.5281, 57.8348)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DCA #A9CA5D
analogous
#5D72CA #7E5DCA #B45DCA
triadic
#7E5DCA #CA7E5D #5DCA7E
tetradic
#7E5DCA #CA5D72 #A9CA5D #5DCAB4
square
#7E5DCA #CA5D72 #A9CA5D #5DCAB4
split-complementary
#7E5DCA #CAB45D #72CA5D
monochromatic
#452B82 #5E3AB0 #7E5DCA #A38BD9 #C7B9E8

Accessibility & contrast

On white

4.88
#7E5DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E5DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DCA
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DCA#FFFFFF#000000##FFFFFF
##7E5DCA1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D72CE
Deuteranopia (green-blind)
#356FC8
Tritanopia (blue-blind)
#6B738A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e5dca;
/* rgb */ color: rgb(126, 93, 202);
/* oklch */ color: oklch(56.5% 0.163 294.6);
Tailwind
colors: {
  custom: {
    50: '#a78cdb',
    500: '#7e5dca',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dca;
$custom-light: #a78cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dca",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 258.165,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56456,
    "c": 0.16278,
    "h": 294.6
  },
  "luminance": 0.16529
}

Semantic roles & 50–950 ramp

primary
#7E5DCA
secondary
#CAD7AC
accent
#DA4EB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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