#7D5CD2#7D5CD2

#7D5CD2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.7% C 0.174 H 292.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7D5CD2
RGBrgb(125, 92, 210)
HSLhsl(257, 57%, 59%)
HSVhsv(257, 56%, 82%)
CMYKcmyk(40.5%, 56.2%, 0%, 17.6%)
CIE-LABlab(47.84, 40.49, -56.52)
CIE-LCHlch(47.84, 69.53, 305.62°)
OKLaboklab(56.72% 0.0678 -0.1607)
OKLCHoklch(56.72% 0.174 292.9)
XYZxyz(23.9143, 16.6668, 62.9173)
Luminance0.1667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CD2 #B1D25C
analogous
#5C76D2 #7D5CD2 #B85CD2
triadic
#7D5CD2 #D27D5C #5CD27D
tetradic
#7D5CD2 #D25C76 #B1D25C #5CD2B8
square
#7D5CD2 #D25C76 #B1D25C #5CD2B8
split-complementary
#7D5CD2 #D2B85C #76D25C
monochromatic
#43278D #5A34BD #7D5CD2 #A38CDF #CABCEC

Accessibility & contrast

On white

4.85
#7D5CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#7D5CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CD2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CD2#FFFFFF#000000##FFFFFF
##7D5CD21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C73D6
Deuteranopia (green-blind)
#276FCF
Tritanopia (blue-blind)
#66758E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7d5cd2;
/* rgb */ color: rgb(125, 92, 210);
/* oklch */ color: oklch(56.7% 0.174 292.9);
Tailwind
colors: {
  custom: {
    50: '#a88be0',
    500: '#7d5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cd2;
$custom-light: #a88be0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cd2",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 256.78,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56724,
    "c": 0.17444,
    "h": 292.9
  },
  "luminance": 0.16667
}

Semantic roles & 50–950 ramp

primary
#7D5CD2
secondary
#CFDCAE
accent
#E048B5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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