#7D5AB3#7D5AB3

#7D5AB3 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.4% C 0.137 H 300.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7D5AB3
RGBrgb(125, 90, 179)
HSLhsl(264, 37%, 53%)
HSVhsv(264, 50%, 70%)
CMYKcmyk(30.2%, 49.7%, 0%, 29.8%)
CIE-LABlab(45.53, 33.39, -42.28)
CIE-LCHlch(45.53, 53.87, 308.30°)
OKLaboklab(54.42% 0.0687 -0.1189)
OKLCHoklch(54.42% 0.137 300)
XYZxyz(20.2484, 14.9269, 44.4535)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D5AB3 #90B35A
analogous
#5A63B3 #7D5AB3 #AA5AB3
triadic
#7D5AB3 #B37D5A #5AB37D
tetradic
#7D5AB3 #B35A63 #90B35A #5AB3AA
square
#7D5AB3 #B35A63 #90B35A #5AB3AA
split-complementary
#7D5AB3 #B3AA5A #63B35A
monochromatic
#442E64 #60428E #7D5AB3 #9E84C6 #BFAEDA

Accessibility & contrast

On white

5.27
#7D5AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7D5AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D5AB3
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D5AB3#FFFFFF#000000##FFFFFF
##7D5AB31.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D6CB6
Deuteranopia (green-blind)
#466BB1
Tritanopia (blue-blind)
#726B7E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7d5ab3;
/* rgb */ color: rgb(125, 90, 179);
/* oklch */ color: oklch(54.4% 0.137 300.0);
Tailwind
colors: {
  custom: {
    50: '#a589ca',
    500: '#7d5ab3',
    950: '#000000',
  },
}
SCSS
$custom: #7d5ab3;
$custom-light: #a589ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d5ab3",
  "rgb": {
    "r": 125,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 263.596,
    "s": 36.929,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5442,
    "c": 0.13738,
    "h": 300
  },
  "luminance": 0.14927
}

Semantic roles & 50–950 ramp

primary
#7D5AB3
secondary
#B9C8A1
accent
#CD5BA0
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #7D5AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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