#7E5DC0#7E5DC0

#7E5DC0 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.8% C 0.150 H 296.6°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E5DC0
RGBrgb(126, 93, 192)
HSLhsl(260, 44%, 56%)
HSVhsv(260, 52%, 75%)
CMYKcmyk(34.4%, 51.6%, 0%, 24.7%)
CIE-LABlab(47.07, 35.30, -47.40)
CIE-LCHlch(47.07, 59.10, 306.68°)
OKLaboklab(55.82% 0.0671 -0.1339)
OKLCHoklch(55.82% 0.15 296.6)
XYZxyz(22.0306, 16.0698, 51.8000)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DC0 #9FC05D
analogous
#5D6DC0 #7E5DC0 #AF5DC0
triadic
#7E5DC0 #C07E5D #5DC07E
tetradic
#7E5DC0 #C05D6D #9FC05D #5DC0AF
square
#7E5DC0 #C05D6D #9FC05D #5DC0AF
split-complementary
#7E5DC0 #C0AF5D #6DC05D
monochromatic
#452E75 #5F3FA1 #7E5DC0 #A189D1 #C4B5E2

Accessibility & contrast

On white

4.98
#7E5DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E5DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DC0
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DC0#FFFFFF#000000##FFFFFF
##7E5DC01.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3870C3
Deuteranopia (green-blind)
#406EBE
Tritanopia (blue-blind)
#6F7086
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5dc0;
/* rgb */ color: rgb(126, 93, 192);
/* oklch */ color: oklch(55.8% 0.150 296.6);
Tailwind
colors: {
  custom: {
    50: '#a78cd3',
    500: '#7e5dc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dc0;
$custom-light: #a78cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dc0",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 192
  },
  "hsl": {
    "h": 260,
    "s": 44,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55823,
    "c": 0.14979,
    "h": 296.6
  },
  "luminance": 0.1607
}

Semantic roles & 50–950 ramp

primary
#7E5DC0
secondary
#C3D1A8
accent
#D454A9
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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