#7D5DC7#7D5DC7

#7D5DC7 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.159 H 294.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7D5DC7
RGBrgb(125, 93, 199)
HSLhsl(258, 49%, 57%)
HSVhsv(258, 53%, 78%)
CMYKcmyk(37.2%, 53.3%, 0%, 22%)
CIE-LABlab(47.38, 36.92, -50.94)
CIE-LCHlch(47.38, 62.91, 305.94°)
OKLaboklab(56.17% 0.0663 -0.1443)
OKLCHoklch(56.17% 0.159 294.7)
XYZxyz(22.6779, 16.3117, 55.9754)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5DC7 #A7C75D
analogous
#5D72C7 #7D5DC7 #B25DC7
triadic
#7D5DC7 #C77D5D #5DC77D
tetradic
#7D5DC7 #C75D72 #A7C75D #5DC7B2
square
#7D5DC7 #C75D72 #A7C75D #5DC7B2
split-complementary
#7D5DC7 #C7B25D #72C75D
monochromatic
#442C7E #5D3BAC #7D5DC7 #A18AD7 #C6B8E6

Accessibility & contrast

On white

4.93
#7D5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7D5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5DC7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5DC7#FFFFFF#000000##FFFFFF
##7D5DC71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3071CB
Deuteranopia (green-blind)
#386FC5
Tritanopia (blue-blind)
#6B7389
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d5dc7;
/* rgb */ color: rgb(125, 93, 199);
/* oklch */ color: oklch(56.2% 0.159 294.7);
Tailwind
colors: {
  custom: {
    50: '#a78cd8',
    500: '#7d5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7d5dc7;
$custom-light: #a78cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5dc7",
  "rgb": {
    "r": 125,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 258.113,
    "s": 48.624,
    "l": 57.255
  },
  "oklch": {
    "l": 0.56168,
    "c": 0.15882,
    "h": 294.7
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#7D5DC7
secondary
#C8D5AA
accent
#D850AF
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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