#7D1D97#7D1D97

#7D1D97 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.6% C 0.192 H 317.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#7D1D97
RGBrgb(125, 29, 151)
HSLhsl(287, 68%, 35%)
HSVhsv(287, 81%, 59%)
CMYKcmyk(17.2%, 80.8%, 0%, 40.8%)
CIE-LABlab(32.86, 56.44, -45.83)
CIE-LCHlch(32.86, 72.70, 320.93°)
OKLaboklab(44.65% 0.1417 -0.129)
OKLCHoklch(44.65% 0.192 317.7)
XYZxyz(14.4819, 7.4737, 29.9519)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D97 #37971D
analogous
#401D97 #7D1D97 #971D74
triadic
#7D1D97 #977D1D #1D977D
tetradic
#7D1D97 #97401D #37971D #1D7497
square
#7D1D97 #97401D #37971D #1D7497
split-complementary
#7D1D97 #74971D #1D9740
monochromatic
#280930 #521364 #7D1D97 #A727CA #C051DE

Accessibility & contrast

On white

8.42
#7D1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7D1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D97
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D97#FFFFFF#000000##FFFFFF
##7D1D971.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#215094
Tritanopia (blue-blind)
#7C395B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d1d97;
/* rgb */ color: rgb(125, 29, 151);
/* oklch */ color: oklch(44.6% 0.192 317.7);
Tailwind
colors: {
  custom: {
    50: '#a766b6',
    500: '#7d1d97',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d97;
$custom-light: #a766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d97",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 287.213,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4465,
    "c": 0.19167,
    "h": 317.7
  },
  "luminance": 0.07473
}

Semantic roles & 50–950 ramp

primary
#7D1D97
secondary
#67C04F
accent
#EB3D62
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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