#7D5ECE#7D5ECE

#7D5ECE is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.8% C 0.166 H 293.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7D5ECE
RGBrgb(125, 94, 206)
HSLhsl(257, 53%, 59%)
HSVhsv(257, 54%, 81%)
CMYKcmyk(39.3%, 54.4%, 0%, 19.2%)
CIE-LABlab(48.03, 38.25, -53.91)
CIE-LCHlch(48.03, 66.10, 305.35°)
OKLaboklab(56.79% 0.0653 -0.1531)
OKLCHoklch(56.79% 0.166 293.1)
XYZxyz(23.5978, 16.8210, 60.3840)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5ECE #AFCE5E
analogous
#5E77CE #7D5ECE #B55ECE
triadic
#7D5ECE #CE7D5E #5ECE7D
tetradic
#7D5ECE #CE5E77 #AFCE5E #5ECEB5
square
#7D5ECE #CE5E77 #AFCE5E #5ECEB5
split-complementary
#7D5ECE #CEB55E #77CE5E
monochromatic
#442988 #5B38B7 #7D5ECE #A38DDC #C9BCEB

Accessibility & contrast

On white

4.81
#7D5ECE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7D5ECE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5ECE
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5ECE#FFFFFF#000000##FFFFFF
##7D5ECE1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2973D2
Deuteranopia (green-blind)
#3170CB
Tritanopia (blue-blind)
#68758D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d5ece;
/* rgb */ color: rgb(125, 94, 206);
/* oklch */ color: oklch(56.8% 0.166 293.1);
Tailwind
colors: {
  custom: {
    50: '#a78cde',
    500: '#7d5ece',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ece;
$custom-light: #a78cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ece",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 206
  },
  "hsl": {
    "h": 256.607,
    "s": 53.333,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56788,
    "c": 0.16642,
    "h": 293.1
  },
  "luminance": 0.16822
}

Semantic roles & 50–950 ramp

primary
#7D5ECE
secondary
#CEDAAE
accent
#DD4BB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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