#7E5DC7#7E5DC7

#7E5DC7 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.3% C 0.159 H 295.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7E5DC7
RGBrgb(126, 93, 199)
HSLhsl(259, 49%, 57%)
HSVhsv(259, 53%, 78%)
CMYKcmyk(36.7%, 53.3%, 0%, 22%)
CIE-LABlab(47.48, 37.17, -50.78)
CIE-LCHlch(47.48, 62.93, 306.20°)
OKLaboklab(56.26% 0.0676 -0.1438)
OKLCHoklch(56.26% 0.159 295.2)
XYZxyz(22.8247, 16.3874, 55.9823)
Luminance0.1639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DC7 #A6C75D
analogous
#5D71C7 #7E5DC7 #B35DC7
triadic
#7E5DC7 #C77E5D #5DC77E
tetradic
#7E5DC7 #C75D71 #A6C75D #5DC7B3
square
#7E5DC7 #C75D71 #A6C75D #5DC7B3
split-complementary
#7E5DC7 #C7B35D #71C75D
monochromatic
#452C7E #5E3BAC #7E5DC7 #A28AD7 #C6B8E6

Accessibility & contrast

On white

4.91
#7E5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7E5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DC7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DC7#FFFFFF#000000##FFFFFF
##7E5DC71.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3071CB
Deuteranopia (green-blind)
#396FC5
Tritanopia (blue-blind)
#6D7289
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e5dc7;
/* rgb */ color: rgb(126, 93, 199);
/* oklch */ color: oklch(56.3% 0.159 295.2);
Tailwind
colors: {
  custom: {
    50: '#a78cd8',
    500: '#7e5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dc7;
$custom-light: #a78cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dc7",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 258.679,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56263,
    "c": 0.1589,
    "h": 295.2
  },
  "luminance": 0.16388
}

Semantic roles & 50–950 ramp

primary
#7E5DC7
secondary
#C8D5AA
accent
#D850AE
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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