#7D1A7B#7D1A7B

#7D1A7B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.171 H 329.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7D1A7B
RGBrgb(125, 26, 123)
HSLhsl(301, 66%, 30%)
HSVhsv(301, 79%, 49%)
CMYKcmyk(0%, 79.2%, 1.6%, 51%)
CIE-LABlab(30.71, 52.26, -31.89)
CIE-LCHlch(30.71, 61.22, 328.61°)
OKLaboklab(42.54% 0.1469 -0.0883)
OKLCHoklch(42.54% 0.171 329)
XYZxyz(12.4019, 6.5298, 19.3422)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A7B #1A7D1C
analogous
#4E1A7D #7D1A7B #7D1A4A
triadic
#7D1A7B #7B7D1A #1A7B7D
tetradic
#7D1A7B #7D4E1A #1A7D1C #1A4A7D
square
#7D1A7B #7D4E1A #1A7D1C #1A4A7D
split-complementary
#7D1A7B #4A7D1A #1A7D4E
monochromatic
#190519 #4A0F49 #7D1A7B #B025AD #D63BD3

Accessibility & contrast

On white

9.11
#7D1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7D1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1A7B
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A7B#FFFFFF#000000##FFFFFF
##7D1A7B1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05407E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#812A4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1a7b;
/* rgb */ color: rgb(125, 26, 123);
/* oklch */ color: oklch(42.5% 0.171 329.0);
Tailwind
colors: {
  custom: {
    50: '#a663a1',
    500: '#7d1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a7b;
$custom-light: #a663a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a7b",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 301.212,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.17137,
    "h": 329
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#7D1A7B
secondary
#42B144
accent
#E9433F
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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