#7D1D9F#7D1D9F

#7D1D9F is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.199 H 314.9°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7D1D9F
RGBrgb(125, 29, 159)
HSLhsl(284, 69%, 37%)
HSVhsv(284, 82%, 62%)
CMYKcmyk(21.4%, 81.8%, 0%, 37.6%)
CIE-LABlab(33.44, 58.02, -49.76)
CIE-LCHlch(33.44, 76.43, 319.38°)
OKLaboklab(45.24% 0.1402 -0.1406)
OKLCHoklch(45.24% 0.199 314.9)
XYZxyz(15.1538, 7.7425, 33.4904)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D9F #3F9F1D
analogous
#3C1D9F #7D1D9F #9F1D80
triadic
#7D1D9F #9F7D1D #1D9F7D
tetradic
#7D1D9F #9F3C1D #3F9F1D #1D809F
square
#7D1D9F #9F3C1D #3F9F1D #1D809F
split-complementary
#7D1D9F #809F1D #1D9F3C
monochromatic
#2C0A37 #54146B #7D1D9F #A626D3 #BC56E0

Accessibility & contrast

On white

8.24
#7D1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7D1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D9F
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D9F#FFFFFF#000000##FFFFFF
##7D1D9F1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#14519C
Tritanopia (blue-blind)
#7A3D5F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d1d9f;
/* rgb */ color: rgb(125, 29, 159);
/* oklch */ color: oklch(45.2% 0.199 314.9);
Tailwind
colors: {
  custom: {
    50: '#a766bc',
    500: '#7d1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d9f;
$custom-light: #a766bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d9f",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 284.308,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45239,
    "c": 0.19859,
    "h": 314.9
  },
  "luminance": 0.07742
}

Semantic roles & 50–950 ramp

primary
#7D1D9F
secondary
#71C454
accent
#EC3C6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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