#7D5DC5#7D5DC5

#7D5DC5 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.156 H 295.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7D5DC5
RGBrgb(125, 93, 197)
HSLhsl(258, 47%, 57%)
HSVhsv(258, 53%, 77%)
CMYKcmyk(36.5%, 52.8%, 0%, 22.7%)
CIE-LABlab(47.26, 36.38, -49.98)
CIE-LCHlch(47.26, 61.82, 306.05°)
OKLaboklab(56.04% 0.0662 -0.1415)
OKLCHoklch(56.04% 0.156 295.1)
XYZxyz(22.4472, 16.2195, 54.7605)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5DC5 #A5C55D
analogous
#5D71C5 #7D5DC5 #B15DC5
triadic
#7D5DC5 #C57D5D #5DC57D
tetradic
#7D5DC5 #C55D71 #A5C55D #5DC5B1
square
#7D5DC5 #C55D71 #A5C55D #5DC5B1
split-complementary
#7D5DC5 #C5B15D #71C55D
monochromatic
#452C7B #5E3CA8 #7D5DC5 #A18AD5 #C5B7E5

Accessibility & contrast

On white

4.95
#7D5DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7D5DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5DC5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5DC5#FFFFFF#000000##FFFFFF
##7D5DC51.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3271C9
Deuteranopia (green-blind)
#3A6FC3
Tritanopia (blue-blind)
#6C7288
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d5dc5;
/* rgb */ color: rgb(125, 93, 197);
/* oklch */ color: oklch(56.0% 0.156 295.1);
Tailwind
colors: {
  custom: {
    50: '#a68cd7',
    500: '#7d5dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5dc5;
$custom-light: #a68cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5dc5",
  "rgb": {
    "r": 125,
    "g": 93,
    "b": 197
  },
  "hsl": {
    "h": 258.462,
    "s": 47.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.5604,
    "c": 0.15622,
    "h": 295.1
  },
  "luminance": 0.1622
}

Semantic roles & 50–950 ramp

primary
#7D5DC5
secondary
#C7D4AA
accent
#D751AE
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7D5DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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