#7D1D9A#7D1D9A

#7D1D9A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.194 H 316.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7D1D9A
RGBrgb(125, 29, 154)
HSLhsl(286, 68%, 36%)
HSVhsv(286, 81%, 60%)
CMYKcmyk(18.8%, 81.2%, 0%, 39.6%)
CIE-LABlab(33.08, 57.03, -47.31)
CIE-LCHlch(33.08, 74.10, 320.32°)
OKLaboklab(44.87% 0.1412 -0.1334)
OKLCHoklch(44.87% 0.194 316.6)
XYZxyz(14.7287, 7.5724, 31.2514)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D9A #3A9A1D
analogous
#3E1D9A #7D1D9A #9A1D78
triadic
#7D1D9A #9A7D1D #1D9A7D
tetradic
#7D1D9A #9A3E1D #3A9A1D #1D789A
square
#7D1D9A #9A3E1D #3A9A1D #1D789A
split-complementary
#7D1D9A #789A1D #1D9A3E
monochromatic
#290A33 #531366 #7D1D9A #A727CE #BE53DF

Accessibility & contrast

On white

8.35
#7D1D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7D1D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D9A
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D9A#FFFFFF#000000##FFFFFF
##7D1D9A1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#1D5097
Tritanopia (blue-blind)
#7B3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1d9a;
/* rgb */ color: rgb(125, 29, 154);
/* oklch */ color: oklch(44.9% 0.194 316.6);
Tailwind
colors: {
  custom: {
    50: '#a766b8',
    500: '#7d1d9a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d9a;
$custom-light: #a766b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d9a",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 286.08,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44868,
    "c": 0.19426,
    "h": 316.6
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#7D1D9A
secondary
#6BC251
accent
#EB3D65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D1D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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