#7D4DB2#7D4DB2

#7D4DB2 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.2% C 0.157 H 303.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7D4DB2
RGBrgb(125, 77, 178)
HSLhsl(269, 40%, 50%)
HSVhsv(269, 57%, 70%)
CMYKcmyk(29.8%, 56.7%, 0%, 30.2%)
CIE-LABlab(42.59, 40.58, -46.39)
CIE-LCHlch(42.59, 61.63, 311.17°)
OKLaboklab(52.22% 0.0861 -0.131)
OKLCHoklch(52.22% 0.157 303.3)
XYZxyz(19.1454, 12.8821, 43.5887)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4DB2 #82B24D
analogous
#4D4FB2 #7D4DB2 #B04DB2
triadic
#7D4DB2 #B27D4D #4DB27D
tetradic
#7D4DB2 #B24D4F #82B24D #4DB2B0
square
#7D4DB2 #B24D4F #82B24D #4DB2B0
split-complementary
#7D4DB2 #B2B04D #4FB24D
monochromatic
#41285D #5F3B87 #7D4DB2 #9C78C4 #BBA2D7

Accessibility & contrast

On white

5.87
#7D4DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7D4DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4DB2
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4DB2#FFFFFF#000000##FFFFFF
##7D4DB21.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B5
Deuteranopia (green-blind)
#3764B0
Tritanopia (blue-blind)
#736178
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4db2;
/* rgb */ color: rgb(125, 77, 178);
/* oklch */ color: oklch(52.2% 0.157 303.3);
Tailwind
colors: {
  custom: {
    50: '#a681c9',
    500: '#7d4db2',
    950: '#000000',
  },
}
SCSS
$custom: #7d4db2;
$custom-light: #a681c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4db2",
  "rgb": {
    "r": 125,
    "g": 77,
    "b": 178
  },
  "hsl": {
    "h": 268.515,
    "s": 39.608,
    "l": 50
  },
  "oklch": {
    "l": 0.52218,
    "c": 0.15676,
    "h": 303.3
  },
  "luminance": 0.12882
}

Semantic roles & 50–950 ramp

primary
#7D4DB2
secondary
#AFC497
accent
#CF5897
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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