#7D5DD2#7D5DD2

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

Color values

HEX#7D5DD2
RGBrgb(125, 93, 210)
HSLhsl(256, 57%, 59%)
HSVhsv(256, 56%, 82%)
CMYKcmyk(40.5%, 55.7%, 0%, 17.6%)
CIE-LABlab(48.06, 39.92, -56.16)
CIE-LCHlch(48.06, 68.90, 305.40°)
OKLaboklab(56.89% 0.0667 -0.1597)
OKLCHoklch(56.89% 0.173 292.7)
XYZxyz(24.0015, 16.8412, 62.9464)
Luminance0.1684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5DD2 #B2D25D
analogous
#5D78D2 #7D5DD2 #B85DD2
triadic
#7D5DD2 #D27D5D #5DD27D
tetradic
#7D5DD2 #D25D78 #B2D25D #5DD2B8
square
#7D5DD2 #D25D78 #B2D25D #5DD2B8
split-complementary
#7D5DD2 #D2B85D #78D25D
monochromatic
#43278D #5A35BD #7D5DD2 #A38DDF #CABDED

Accessibility & contrast

On white

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

On black

4.37
#7D5DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7D5DD2#FFFFFF#000000##FFFFFF
##7D5DD21.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2074D6
Deuteranopia (green-blind)
#2970CF
Tritanopia (blue-blind)
#66768E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7d5dd2;
/* rgb */ color: rgb(125, 93, 210);
/* oklch */ color: oklch(56.9% 0.173 292.7);
Tailwind
colors: {
  custom: {
    50: '#a88ce0',
    500: '#7d5dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5dd2;
$custom-light: #a88ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5dd2",
  "rgb": {
    "r": 125,
    "g": 93,
    "b": 210
  },
  "hsl": {
    "h": 256.41,
    "s": 56.522,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56887,
    "c": 0.17301,
    "h": 292.7
  },
  "luminance": 0.16842
}

Semantic roles & 50–950 ramp

primary
#7D5DD2
secondary
#D0DCAF
accent
#E048B6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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