#7D1D9D#7D1D9D

#7D1D9D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.197 H 315.6°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7D1D9D
RGBrgb(125, 29, 157)
HSLhsl(285, 69%, 36%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(20.4%, 81.5%, 0%, 38.4%)
CIE-LABlab(33.29, 57.62, -48.79)
CIE-LCHlch(33.29, 75.50, 319.74°)
OKLaboklab(45.09% 0.1406 -0.1377)
OKLCHoklch(45.09% 0.197 315.6)
XYZxyz(14.9816, 7.6736, 32.5837)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D9D #3D9D1D
analogous
#3D1D9D #7D1D9D #9D1D7D
triadic
#7D1D9D #9D7D1D #1D9D7D
tetradic
#7D1D9D #9D3D1D #3D9D1D #1D7D9D
square
#7D1D9D #9D3D1D #3D9D1D #1D7D9D
split-complementary
#7D1D9D #7D9D1D #1D9D3D
monochromatic
#2B0A36 #541369 #7D1D9D #A627D1 #BD55E0

Accessibility & contrast

On white

8.29
#7D1D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D1D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D9D
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D9D#FFFFFF#000000##FFFFFF
##7D1D9D1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#18519A
Tritanopia (blue-blind)
#7A3C5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1d9d;
/* rgb */ color: rgb(125, 29, 157);
/* oklch */ color: oklch(45.1% 0.197 315.6);
Tailwind
colors: {
  custom: {
    50: '#a766bb',
    500: '#7d1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d9d;
$custom-light: #a766bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d9d",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 285,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4509,
    "c": 0.19686,
    "h": 315.6
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#7D1D9D
secondary
#6FC353
accent
#EC3C68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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