#7D5ECD#7D5ECD

#7D5ECD is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.7% C 0.165 H 293.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7D5ECD
RGBrgb(125, 94, 205)
HSLhsl(257, 53%, 59%)
HSVhsv(257, 54%, 80%)
CMYKcmyk(39%, 54.1%, 0%, 19.6%)
CIE-LABlab(47.97, 37.97, -53.44)
CIE-LCHlch(47.97, 65.56, 305.40°)
OKLaboklab(56.72% 0.0653 -0.1517)
OKLCHoklch(56.72% 0.165 293.3)
XYZxyz(23.4767, 16.7726, 59.7463)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5ECD #AECD5E
analogous
#5E76CD #7D5ECD #B45ECD
triadic
#7D5ECD #CD7D5E #5ECD7D
tetradic
#7D5ECD #CD5E76 #AECD5E #5ECDB4
square
#7D5ECD #CD5E76 #AECD5E #5ECDB4
split-complementary
#7D5ECD #CDB45E #76CD5E
monochromatic
#442A87 #5B38B5 #7D5ECD #A38DDC #C8BBEA

Accessibility & contrast

On white

4.82
#7D5ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7D5ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5ECD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5ECD#FFFFFF#000000##FFFFFF
##7D5ECD1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B73D1
Deuteranopia (green-blind)
#3270CA
Tritanopia (blue-blind)
#68758C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d5ecd;
/* rgb */ color: rgb(125, 94, 205);
/* oklch */ color: oklch(56.7% 0.165 293.3);
Tailwind
colors: {
  custom: {
    50: '#a78cdd',
    500: '#7d5ecd',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ecd;
$custom-light: #a78cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ecd",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 256.757,
    "s": 52.607,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56723,
    "c": 0.16512,
    "h": 293.3
  },
  "luminance": 0.16773
}

Semantic roles & 50–950 ramp

primary
#7D5ECD
secondary
#CDD9AD
accent
#DC4CB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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