#7D5CAC#7D5CAC

#7D5CAC is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.4% C 0.125 H 301.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#7D5CAC
RGBrgb(125, 92, 172)
HSLhsl(265, 33%, 52%)
HSVhsv(265, 47%, 67%)
CMYKcmyk(27.3%, 46.5%, 0%, 32.5%)
CIE-LABlab(45.62, 30.43, -38.03)
CIE-LCHlch(45.62, 48.70, 308.66°)
OKLaboklab(54.36% 0.0651 -0.1066)
OKLCHoklch(54.36% 0.125 301.4)
XYZxyz(19.7293, 14.9928, 40.8762)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5CAC #8BAC5C
analogous
#5C63AC #7D5CAC #A55CAC
triadic
#7D5CAC #AC7D5C #5CAC7D
tetradic
#7D5CAC #AC5C63 #8BAC5C #5CACA5
square
#7D5CAC #AC5C63 #8BAC5C #5CACA5
split-complementary
#7D5CAC #ACA55C #63AC5C
monochromatic
#43305E #604486 #7D5CAC #9D85C1 #BEADD5

Accessibility & contrast

On white

5.25
#7D5CAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7D5CAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5CAC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5CAC#FFFFFF#000000##FFFFFF
##7D5CAC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456CAF
Deuteranopia (green-blind)
#4D6CAA
Tritanopia (blue-blind)
#746A7C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d5cac;
/* rgb */ color: rgb(125, 92, 172);
/* oklch */ color: oklch(54.4% 0.125 301.4);
Tailwind
colors: {
  custom: {
    50: '#a58bc5',
    500: '#7d5cac',
    950: '#000000',
  },
}
SCSS
$custom: #7d5cac;
$custom-light: #a58bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5cac",
  "rgb": {
    "r": 125,
    "g": 92,
    "b": 172
  },
  "hsl": {
    "h": 264.75,
    "s": 32.52,
    "l": 51.765
  },
  "oklch": {
    "l": 0.54364,
    "c": 0.12486,
    "h": 301.4
  },
  "luminance": 0.14993
}

Semantic roles & 50–950 ramp

primary
#7D5CAC
secondary
#B5C3A0
accent
#C95F9D
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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