#7D1A6E#7D1A6E

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

Color values

HEX#7D1A6E
RGBrgb(125, 26, 110)
HSLhsl(309, 66%, 30%)
HSVhsv(309, 79%, 49%)
CMYKcmyk(0%, 79.2%, 12%, 51%)
CIE-LABlab(29.97, 50.14, -24.80)
CIE-LCHlch(29.97, 55.94, 333.69°)
OKLaboklab(41.78% 0.1465 -0.0678)
OKLCHoklch(41.78% 0.161 335.2)
XYZxyz(11.6415, 6.2256, 15.3374)
Luminance0.0622 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A6E #1A7D29
analogous
#5B1A7D #7D1A6E #7D1A3D
triadic
#7D1A6E #6E7D1A #1A6E7D
tetradic
#7D1A6E #7D5B1A #1A7D29 #1A3D7D
square
#7D1A6E #7D5B1A #1A7D29 #1A3D7D
split-complementary
#7D1A6E #3D7D1A #1A7D5B
monochromatic
#190516 #4A0F41 #7D1A6E #B0259B #D63BBF

Accessibility & contrast

On white

9.35
#7D1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1A6E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A6E#FFFFFF#000000##FFFFFF
##7D1A6E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3D70
Deuteranopia (green-blind)
#3E4C6C
Tritanopia (blue-blind)
#832343
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1a6e;
/* rgb */ color: rgb(125, 26, 110);
/* oklch */ color: oklch(41.8% 0.161 335.2);
Tailwind
colors: {
  custom: {
    50: '#a66398',
    500: '#7d1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a6e;
$custom-light: #a66398;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a6e",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 309.091,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41776,
    "c": 0.16144,
    "h": 335.2
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#7D1A6E
secondary
#42B153
accent
#E9593F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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