#7D4DBA#7D4DBA

#7D4DBA is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.7% C 0.166 H 301.2°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#7D4DBA
RGBrgb(125, 77, 186)
HSLhsl(266, 44%, 52%)
HSVhsv(266, 59%, 73%)
CMYKcmyk(32.8%, 58.6%, 0%, 27.1%)
CIE-LABlab(43.08, 42.59, -50.29)
CIE-LCHlch(43.08, 65.90, 310.26°)
OKLaboklab(52.74% 0.0862 -0.1424)
OKLCHoklch(52.74% 0.166 301.2)
XYZxyz(19.9722, 13.2128, 47.9430)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4DBA #8ABA4D
analogous
#4D54BA #7D4DBA #B44DBA
triadic
#7D4DBA #BA7D4D #4DBA7D
tetradic
#7D4DBA #BA4D54 #8ABA4D #4DBAB4
square
#7D4DBA #BA4D54 #8ABA4D #4DBAB4
split-complementary
#7D4DBA #BAB44D #54BA4D
monochromatic
#432765 #603891 #7D4DBA #9D79CB #BDA5DC

Accessibility & contrast

On white

5.77
#7D4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7D4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4DBA
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4DBA#FFFFFF#000000##FFFFFF
##7D4DBA1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1765BE
Deuteranopia (green-blind)
#2E65B8
Tritanopia (blue-blind)
#71637C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7d4dba;
/* rgb */ color: rgb(125, 77, 186);
/* oklch */ color: oklch(52.7% 0.166 301.2);
Tailwind
colors: {
  custom: {
    50: '#a681cf',
    500: '#7d4dba',
    950: '#000000',
  },
}
SCSS
$custom: #7d4dba;
$custom-light: #a681cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4dba",
  "rgb": {
    "r": 125,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 266.422,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52742,
    "c": 0.16646,
    "h": 301.2
  },
  "luminance": 0.13213
}

Semantic roles & 50–950 ramp

primary
#7D4DBA
secondary
#B4C999
accent
#D4549C
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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