#7D1A6F#7D1A6F

#7D1A6F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.162 H 334.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7D1A6F
RGBrgb(125, 26, 111)
HSLhsl(308, 66%, 30%)
HSVhsv(308, 79%, 49%)
CMYKcmyk(0%, 79.2%, 11.2%, 51%)
CIE-LABlab(30.03, 50.30, -25.35)
CIE-LCHlch(30.03, 56.33, 333.25°)
OKLaboklab(41.83% 0.1466 -0.0694)
OKLCHoklch(41.83% 0.162 334.7)
XYZxyz(11.6962, 6.2475, 15.6257)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A6F #1A7D28
analogous
#5A1A7D #7D1A6F #7D1A3E
triadic
#7D1A6F #6F7D1A #1A6F7D
tetradic
#7D1A6F #7D5A1A #1A7D28 #1A3E7D
square
#7D1A6F #7D5A1A #1A7D28 #1A3E7D
split-complementary
#7D1A6F #3E7D1A #1A7D5A
monochromatic
#190516 #4A0F42 #7D1A6F #B0259C #D63BC0

Accessibility & contrast

On white

9.34
#7D1A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7D1A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1A6F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A6F#FFFFFF#000000##FFFFFF
##7D1A6F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#832343
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1a6f;
/* rgb */ color: rgb(125, 26, 111);
/* oklch */ color: oklch(41.8% 0.162 334.7);
Tailwind
colors: {
  custom: {
    50: '#a66398',
    500: '#7d1a6f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a6f;
$custom-light: #a66398;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a6f",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 111
  },
  "hsl": {
    "h": 308.485,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41833,
    "c": 0.16217,
    "h": 334.7
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#7D1A6F
secondary
#42B151
accent
#E9573F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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