#7D1E7B#7D1E7B

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

Color values

HEX#7D1E7B
RGBrgb(125, 30, 123)
HSLhsl(301, 61%, 30%)
HSVhsv(301, 76%, 49%)
CMYKcmyk(0%, 76%, 1.6%, 51%)
CIE-LABlab(31.16, 50.97, -31.18)
CIE-LCHlch(31.16, 59.75, 328.55°)
OKLaboklab(42.86% 0.1432 -0.0863)
OKLCHoklch(42.86% 0.167 328.9)
XYZxyz(12.4968, 6.7195, 19.3739)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E7B #1E7D20
analogous
#4F1E7D #7D1E7B #7D1E4B
triadic
#7D1E7B #7B7D1E #1E7B7D
tetradic
#7D1E7B #7D4F1E #1E7D20 #1E4B7D
square
#7D1E7B #7D4F1E #1E7D20 #1E4B7D
split-complementary
#7D1E7B #4B7D1E #1E7D4F
monochromatic
#1A061A #4C124A #7D1E7B #AE2AAC #D243CF

Accessibility & contrast

On white

8.96
#7D1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7D1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E7B
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E7B#FFFFFF#000000##FFFFFF
##7D1E7B1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417E
Deuteranopia (green-blind)
#394E79
Tritanopia (blue-blind)
#812C4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1e7b;
/* rgb */ color: rgb(125, 30, 123);
/* oklch */ color: oklch(42.9% 0.167 328.9);
Tailwind
colors: {
  custom: {
    50: '#a665a1',
    500: '#7d1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e7b;
$custom-light: #a665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e7b",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 301.263,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42862,
    "c": 0.16718,
    "h": 328.9
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#7D1E7B
secondary
#46B049
accent
#E44743
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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