#7D5AC8#7D5AC8

#7D5AC8 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.7% C 0.165 H 295.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7D5AC8
RGBrgb(125, 90, 200)
HSLhsl(259, 50%, 57%)
HSVhsv(259, 55%, 78%)
CMYKcmyk(37.5%, 55%, 0%, 21.6%)
CIE-LABlab(46.77, 38.92, -52.50)
CIE-LCHlch(46.77, 65.36, 306.55°)
OKLaboklab(55.73% 0.0701 -0.1489)
OKLCHoklch(55.73% 0.165 295.2)
XYZxyz(22.5362, 15.8420, 56.5028)
Luminance0.1584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5AC8 #A5C85A
analogous
#5A6EC8 #7D5AC8 #B45AC8
triadic
#7D5AC8 #C87D5A #5AC87D
tetradic
#7D5AC8 #C85A6E #A5C85A #5AC8B4
square
#7D5AC8 #C85A6E #A5C85A #5AC8B4
split-complementary
#7D5AC8 #C8B45A #6EC85A
monochromatic
#452A7E #5E39AC #7D5AC8 #A188D7 #C5B6E7

Accessibility & contrast

On white

5.04
#7D5AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7D5AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5AC8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5AC8#FFFFFF#000000##FFFFFF
##7D5AC81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2770CC
Deuteranopia (green-blind)
#326DC6
Tritanopia (blue-blind)
#6B7188
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d5ac8;
/* rgb */ color: rgb(125, 90, 200);
/* oklch */ color: oklch(55.7% 0.165 295.2);
Tailwind
colors: {
  custom: {
    50: '#a78ad9',
    500: '#7d5ac8',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ac8;
$custom-light: #a78ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ac8",
  "rgb": {
    "r": 125,
    "g": 90,
    "b": 200
  },
  "hsl": {
    "h": 259.091,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55732,
    "c": 0.16458,
    "h": 295.2
  },
  "luminance": 0.15842
}

Semantic roles & 50–950 ramp

primary
#7D5AC8
secondary
#C7D5A8
accent
#DA4EAD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7D5AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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