#7D5EB5#7D5EB5

#7D5EB5 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.2% C 0.134 H 298.4°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#7D5EB5
RGBrgb(125, 94, 181)
HSLhsl(261, 37%, 54%)
HSVhsv(261, 48%, 71%)
CMYKcmyk(30.9%, 48.1%, 0%, 29%)
CIE-LABlab(46.58, 31.56, -41.78)
CIE-LCHlch(46.58, 52.36, 307.06°)
OKLaboklab(55.24% 0.0635 -0.1175)
OKLCHoklch(55.24% 0.134 298.4)
XYZxyz(20.7986, 15.7014, 45.6420)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5EB5 #96B55E
analogous
#5E6BB5 #7D5EB5 #A95EB5
triadic
#7D5EB5 #B57D5E #5EB57D
tetradic
#7D5EB5 #B55E6B #96B55E #5EB5A9
square
#7D5EB5 #B55E6B #96B55E #5EB5A9
split-complementary
#7D5EB5 #B5A95E #6BB55E
monochromatic
#443069 #604392 #7D5EB5 #9F88C8 #C1B2DC

Accessibility & contrast

On white

5.07
#7D5EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#7D5EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5EB5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5EB5#FFFFFF#000000##FFFFFF
##7D5EB51.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426EB8
Deuteranopia (green-blind)
#496EB3
Tritanopia (blue-blind)
#716E81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7d5eb5;
/* rgb */ color: rgb(125, 94, 181);
/* oklch */ color: oklch(55.2% 0.134 298.4);
Tailwind
colors: {
  custom: {
    50: '#a58ccb',
    500: '#7d5eb5',
    950: '#000000',
  },
}
SCSS
$custom: #7d5eb5;
$custom-light: #a58ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5eb5",
  "rgb": {
    "r": 125,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 261.379,
    "s": 37.021,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55237,
    "c": 0.13355,
    "h": 298.4
  },
  "luminance": 0.15702
}

Semantic roles & 50–950 ramp

primary
#7D5EB5
secondary
#BDCAA5
accent
#CD5BA4
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #7D5EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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