#7D5CD1#7D5CD1

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

Color values

HEX#7D5CD1
RGBrgb(125, 92, 209)
HSLhsl(257, 56%, 59%)
HSVhsv(257, 56%, 82%)
CMYKcmyk(40.2%, 56%, 0%, 18%)
CIE-LABlab(47.77, 40.22, -56.05)
CIE-LCHlch(47.77, 68.99, 305.66°)
OKLaboklab(56.66% 0.0678 -0.1593)
OKLCHoklch(56.66% 0.173 293.1)
XYZxyz(23.7901, 16.6171, 62.2632)
Luminance0.1662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CD1 #B0D15C
analogous
#5C76D1 #7D5CD1 #B85CD1
triadic
#7D5CD1 #D17D5C #5CD17D
tetradic
#7D5CD1 #D15C76 #B0D15C #5CD1B8
square
#7D5CD1 #D15C76 #B0D15C #5CD1B8
split-complementary
#7D5CD1 #D1B85C #76D15C
monochromatic
#44278B #5B35BB #7D5CD1 #A38CDE #C9BBEC

Accessibility & contrast

On white

4.86
#7D5CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7D5CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CD1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CD1#FFFFFF#000000##FFFFFF
##7D5CD11.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E73D5
Deuteranopia (green-blind)
#296FCE
Tritanopia (blue-blind)
#67758E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7d5cd1;
/* rgb */ color: rgb(125, 92, 209);
/* oklch */ color: oklch(56.7% 0.173 293.1);
Tailwind
colors: {
  custom: {
    50: '#a78be0',
    500: '#7d5cd1',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cd1;
$custom-light: #a78be0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cd1",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 209
  },
  "hsl": {
    "h": 256.923,
    "s": 55.981,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56657,
    "c": 0.17317,
    "h": 293.1
  },
  "luminance": 0.16618
}

Semantic roles & 50–950 ramp

primary
#7D5CD1
secondary
#CEDBAD
accent
#DF49B5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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