#7D5AB8#7D5AB8

#7D5AB8 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.7% C 0.144 H 298.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7D5AB8
RGBrgb(125, 90, 184)
HSLhsl(262, 40%, 54%)
HSVhsv(262, 51%, 72%)
CMYKcmyk(32.1%, 51.1%, 0%, 27.8%)
CIE-LABlab(45.82, 34.69, -44.75)
CIE-LCHlch(45.82, 56.62, 307.78°)
OKLaboklab(54.72% 0.0692 -0.1262)
OKLCHoklch(54.72% 0.144 298.7)
XYZxyz(20.7633, 15.1328, 47.1651)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5AB8 #95B85A
analogous
#5A66B8 #7D5AB8 #AC5AB8
triadic
#7D5AB8 #B87D5A #5AB87D
tetradic
#7D5AB8 #B85A66 #95B85A #5AB8AC
square
#7D5AB8 #B85A66 #95B85A #5AB8AC
split-complementary
#7D5AB8 #B8AC5A #66B85A
monochromatic
#442E6A #604095 #7D5AB8 #9F85CA #C0B0DD

Accessibility & contrast

On white

5.22
#7D5AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7D5AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5AB8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5AB8#FFFFFF#000000##FFFFFF
##7D5AB81.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396CBB
Deuteranopia (green-blind)
#426CB6
Tritanopia (blue-blind)
#716C80
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d5ab8;
/* rgb */ color: rgb(125, 90, 184);
/* oklch */ color: oklch(54.7% 0.144 298.7);
Tailwind
colors: {
  custom: {
    50: '#a589ce',
    500: '#7d5ab8',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ab8;
$custom-light: #a589ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ab8",
  "rgb": {
    "r": 125,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 262.34,
    "s": 39.831,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54721,
    "c": 0.14391,
    "h": 298.7
  },
  "luminance": 0.15133
}

Semantic roles & 50–950 ramp

primary
#7D5AB8
secondary
#BCCBA3
accent
#D058A3
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#100B13
muted
#7F7C82

Preview Lab

Preview with #7D5AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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