#7D1A7F#7D1A7F

#7D1A7F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.175 H 327.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7D1A7F
RGBrgb(125, 26, 127)
HSLhsl(299, 66%, 30%)
HSVhsv(299, 80%, 50%)
CMYKcmyk(1.6%, 79.5%, 0%, 50.2%)
CIE-LABlab(30.95, 52.94, -34.02)
CIE-LCHlch(30.95, 62.93, 327.27°)
OKLaboklab(42.79% 0.1468 -0.0945)
OKLCHoklch(42.79% 0.175 327.2)
XYZxyz(12.6574, 6.6320, 20.6880)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A7F #1C7F1A
analogous
#4B1A7F #7D1A7F #7F1A4E
triadic
#7D1A7F #7F7D1A #1A7F7D
tetradic
#7D1A7F #7F4B1A #1C7F1A #1A4E7F
square
#7D1A7F #7F4B1A #1C7F1A #1A4E7F
split-complementary
#7D1A7F #4E7F1A #1A7F4B
monochromatic
#190519 #4B104C #7D1A7F #AF24B2 #D43CD7

Accessibility & contrast

On white

9.03
#7D1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1A7F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A7F#FFFFFF#000000##FFFFFF
##7D1A7F1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#812C4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1a7f;
/* rgb */ color: rgb(125, 26, 127);
/* oklch */ color: oklch(42.8% 0.175 327.2);
Tailwind
colors: {
  custom: {
    50: '#a664a4',
    500: '#7d1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a7f;
$custom-light: #a664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a7f",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 298.812,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.42793,
    "c": 0.17454,
    "h": 327.2
  },
  "luminance": 0.06631
}

Semantic roles & 50–950 ramp

primary
#7D1A7F
secondary
#44B342
accent
#E93F42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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