#7D4DB7#7D4DB7

#7D4DB7 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.5% C 0.163 H 302.0°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#7D4DB7
RGBrgb(125, 77, 183)
HSLhsl(267, 42%, 51%)
HSVhsv(267, 58%, 72%)
CMYKcmyk(31.7%, 57.9%, 0%, 28.2%)
CIE-LABlab(42.89, 41.83, -48.84)
CIE-LCHlch(42.89, 64.30, 310.58°)
OKLaboklab(52.54% 0.0862 -0.1381)
OKLCHoklch(52.54% 0.163 302)
XYZxyz(19.6566, 13.0866, 46.2810)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D4DB7 #87B74D
analogous
#4D52B7 #7D4DB7 #B24DB7
triadic
#7D4DB7 #B77D4D #4DB77D
tetradic
#7D4DB7 #B74D52 #87B74D #4DB7B2
square
#7D4DB7 #B74D52 #87B74D #4DB7B2
split-complementary
#7D4DB7 #B7B24D #52B74D
monochromatic
#422862 #5F398E #7D4DB7 #9D79C9 #BDA4DA

Accessibility & contrast

On white

5.81
#7D4DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#7D4DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D4DB7
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D4DB7#FFFFFF#000000##FFFFFF
##7D4DB71.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D65BA
Deuteranopia (green-blind)
#3165B5
Tritanopia (blue-blind)
#72627A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d4db7;
/* rgb */ color: rgb(125, 77, 183);
/* oklch */ color: oklch(52.5% 0.163 302.0);
Tailwind
colors: {
  custom: {
    50: '#a681cd',
    500: '#7d4db7',
    950: '#000000',
  },
}
SCSS
$custom: #7d4db7;
$custom-light: #a681cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d4db7",
  "rgb": {
    "r": 125,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 267.17,
    "s": 42.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52543,
    "c": 0.16283,
    "h": 302
  },
  "luminance": 0.13087
}

Semantic roles & 50–950 ramp

primary
#7D4DB7
secondary
#B2C798
accent
#D2569A
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D4DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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