#7E5CC5#7E5CC5

#7E5CC5 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.0% C 0.158 H 295.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7E5CC5
RGBrgb(126, 92, 197)
HSLhsl(259, 48%, 57%)
HSVhsv(259, 53%, 77%)
CMYKcmyk(36%, 53.3%, 0%, 22.7%)
CIE-LABlab(47.13, 37.21, -50.18)
CIE-LCHlch(47.13, 62.47, 306.56°)
OKLaboklab(55.97% 0.0688 -0.1421)
OKLCHoklch(55.97% 0.158 295.8)
XYZxyz(22.5068, 16.1207, 54.7383)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CC5 #A3C55C
analogous
#5C6FC5 #7E5CC5 #B35CC5
triadic
#7E5CC5 #C57E5C #5CC57E
tetradic
#7E5CC5 #C55C6F #A3C55C #5CC5B3
square
#7E5CC5 #C55C6F #A3C55C #5CC5B3
split-complementary
#7E5CC5 #C5B35C #6FC55C
monochromatic
#452C7B #5F3CA8 #7E5CC5 #A289D5 #C5B6E5

Accessibility & contrast

On white

4.97
#7E5CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7E5CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CC5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CC5#FFFFFF#000000##FFFFFF
##7E5CC51.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3070C9
Deuteranopia (green-blind)
#396EC3
Tritanopia (blue-blind)
#6D7188
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5cc5;
/* rgb */ color: rgb(126, 92, 197);
/* oklch */ color: oklch(56.0% 0.158 295.8);
Tailwind
colors: {
  custom: {
    50: '#a78bd7',
    500: '#7e5cc5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cc5;
$custom-light: #a78bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cc5",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 197
  },
  "hsl": {
    "h": 259.429,
    "s": 47.511,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55968,
    "c": 0.15782,
    "h": 295.8
  },
  "luminance": 0.16121
}

Semantic roles & 50–950 ramp

primary
#7E5CC5
secondary
#C6D4A9
accent
#D751AC
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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