#7D5EB7#7D5EB7

#7D5EB7 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.4% C 0.136 H 297.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7D5EB7
RGBrgb(125, 94, 183)
HSLhsl(261, 38%, 54%)
HSVhsv(261, 49%, 72%)
CMYKcmyk(31.7%, 48.6%, 0%, 28.2%)
CIE-LABlab(46.69, 32.08, -42.77)
CIE-LCHlch(46.69, 53.47, 306.87°)
OKLaboklab(55.36% 0.0637 -0.1204)
OKLCHoklch(55.36% 0.136 297.9)
XYZxyz(21.0053, 15.7841, 46.7305)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EB7 #98B75E
analogous
#5E6CB7 #7D5EB7 #AA5EB7
triadic
#7D5EB7 #B77D5E #5EB77D
tetradic
#7D5EB7 #B75E6C #98B75E #5EB7AA
square
#7D5EB7 #B75E6C #98B75E #5EB7AA
split-complementary
#7D5EB7 #B7AA5E #6CB75E
monochromatic
#44306B #5F4395 #7D5EB7 #9F88CA #C1B3DD

Accessibility & contrast

On white

5.05
#7D5EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7D5EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EB7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EB7#FFFFFF#000000##FFFFFF
##7D5EB71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406FBA
Deuteranopia (green-blind)
#476EB5
Tritanopia (blue-blind)
#716F82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d5eb7;
/* rgb */ color: rgb(125, 94, 183);
/* oklch */ color: oklch(55.4% 0.136 297.9);
Tailwind
colors: {
  custom: {
    50: '#a58ccd',
    500: '#7d5eb7',
    950: '#000000',
  },
}
SCSS
$custom: #7d5eb7;
$custom-light: #a58ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5eb7",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 183
  },
  "hsl": {
    "h": 260.899,
    "s": 38.197,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55355,
    "c": 0.13621,
    "h": 297.9
  },
  "luminance": 0.15784
}

Semantic roles & 50–950 ramp

primary
#7D5EB7
secondary
#BECBA6
accent
#CE5AA6
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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