#7E5DCD#7E5DCD

#7E5DCD is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.167 H 294.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E5DCD
RGBrgb(126, 93, 205)
HSLhsl(258, 53%, 58%)
HSVhsv(258, 55%, 80%)
CMYKcmyk(38.5%, 54.6%, 0%, 19.6%)
CIE-LABlab(47.84, 38.79, -53.64)
CIE-LCHlch(47.84, 66.20, 305.87°)
OKLaboklab(56.65% 0.0678 -0.1522)
OKLCHoklch(56.65% 0.167 294)
XYZxyz(23.5351, 16.6716, 59.7237)
Luminance0.1667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5DCD #ACCD5D
analogous
#5D74CD #7E5DCD #B65DCD
triadic
#7E5DCD #CD7E5D #5DCD7E
tetradic
#7E5DCD #CD5D74 #ACCD5D #5DCDB6
square
#7E5DCD #CD5D74 #ACCD5D #5DCDB6
split-complementary
#7E5DCD #CDB65D #74CD5D
monochromatic
#452986 #5D38B5 #7E5DCD #A38CDB #C8BBEA

Accessibility & contrast

On white

4.84
#7E5DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7E5DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5DCD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5DCD#FFFFFF#000000##FFFFFF
##7E5DCD1.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2973D1
Deuteranopia (green-blind)
#3270CA
Tritanopia (blue-blind)
#6A748C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5dcd;
/* rgb */ color: rgb(126, 93, 205);
/* oklch */ color: oklch(56.7% 0.167 294.0);
Tailwind
colors: {
  custom: {
    50: '#a88cdd',
    500: '#7e5dcd',
    950: '#000000',
  },
}
SCSS
$custom: #7e5dcd;
$custom-light: #a88cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5dcd",
  "rgb": {
    "r": 126,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 257.679,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56651,
    "c": 0.16665,
    "h": 294
  },
  "luminance": 0.16672
}

Semantic roles & 50–950 ramp

primary
#7E5DCD
secondary
#CCD9AD
accent
#DC4CB2
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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