#7D4DB3#7D4DB3

#7D4DB3 is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.3% C 0.158 H 303.1°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#7D4DB3
RGBrgb(125, 77, 179)
HSLhsl(268, 40%, 50%)
HSVhsv(268, 57%, 70%)
CMYKcmyk(30.2%, 57%, 0%, 29.8%)
CIE-LABlab(42.65, 40.83, -46.88)
CIE-LCHlch(42.65, 62.17, 311.05°)
OKLaboklab(52.28% 0.0862 -0.1324)
OKLCHoklch(52.28% 0.158 303.1)
XYZxyz(19.2462, 12.9224, 44.1194)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4DB3 #83B34D
analogous
#4D50B3 #7D4DB3 #B04DB3
triadic
#7D4DB3 #B37D4D #4DB37D
tetradic
#7D4DB3 #B34D50 #83B34D #4DB3B0
square
#7D4DB3 #B34D50 #83B34D #4DB3B0
split-complementary
#7D4DB3 #B3B04D #50B34D
monochromatic
#41285E #5F3A89 #7D4DB3 #9C78C5 #BCA3D8

Accessibility & contrast

On white

5.86
#7D4DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D4DB3
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4DB3#FFFFFF#000000##FFFFFF
##7D4DB31.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2364B6
Deuteranopia (green-blind)
#3664B1
Tritanopia (blue-blind)
#736178
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4db3;
/* rgb */ color: rgb(125, 77, 179);
/* oklch */ color: oklch(52.3% 0.158 303.1);
Tailwind
colors: {
  custom: {
    50: '#a681ca',
    500: '#7d4db3',
    950: '#000000',
  },
}
SCSS
$custom: #7d4db3;
$custom-light: #a681ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4db3",
  "rgb": {
    "r": 125,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 268.235,
    "s": 40.157,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52282,
    "c": 0.15797,
    "h": 303.1
  },
  "luminance": 0.12922
}

Semantic roles & 50–950 ramp

primary
#7D4DB3
secondary
#AFC597
accent
#D05897
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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