#7D1D7B#7D1D7B

#7D1D7B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.168 H 328.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7D1D7B
RGBrgb(125, 29, 123)
HSLhsl(301, 62%, 30%)
HSVhsv(301, 77%, 49%)
CMYKcmyk(0%, 76.8%, 1.6%, 51%)
CIE-LABlab(31.04, 51.31, -31.37)
CIE-LCHlch(31.04, 60.14, 328.56°)
OKLaboklab(42.78% 0.1442 -0.0868)
OKLCHoklch(42.78% 0.168 328.9)
XYZxyz(12.4719, 6.6697, 19.3656)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D7B #1D7D1F
analogous
#4F1D7D #7D1D7B #7D1D4B
triadic
#7D1D7B #7B7D1D #1D7B7D
tetradic
#7D1D7B #7D4F1D #1D7D1F #1D4B7D
square
#7D1D7B #7D4F1D #1D7D1F #1D4B7D
split-complementary
#7D1D7B #4B7D1D #1D7D4F
monochromatic
#1A0619 #4B114A #7D1D7B #AF29AC #D341D0

Accessibility & contrast

On white

9.00
#7D1D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7D1D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1D7B
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D7B#FFFFFF#000000##FFFFFF
##7D1D7B1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C417E
Deuteranopia (green-blind)
#394D79
Tritanopia (blue-blind)
#812B4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1d7b;
/* rgb */ color: rgb(125, 29, 123);
/* oklch */ color: oklch(42.8% 0.168 328.9);
Tailwind
colors: {
  custom: {
    50: '#a665a1',
    500: '#7d1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d7b;
$custom-light: #a665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d7b",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 301.25,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.16827,
    "h": 328.9
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#7D1D7B
secondary
#45B148
accent
#E54642
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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