#7D1A7E#7D1A7E

#7D1A7E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.174 H 327.7°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7D1A7E
RGBrgb(125, 26, 126)
HSLhsl(299, 66%, 30%)
HSVhsv(299, 79%, 49%)
CMYKcmyk(0.8%, 79.4%, 0%, 50.6%)
CIE-LABlab(30.89, 52.77, -33.49)
CIE-LCHlch(30.89, 62.50, 327.60°)
OKLaboklab(42.73% 0.1468 -0.093)
OKLCHoklch(42.73% 0.174 327.7)
XYZxyz(12.5926, 6.6060, 20.3465)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1A7E #1B7E1A
analogous
#4B1A7E #7D1A7E #7E1A4D
triadic
#7D1A7E #7E7D1A #1A7E7D
tetradic
#7D1A7E #7E4B1A #1B7E1A #1A4D7E
square
#7D1A7E #7E4B1A #1B7E1A #1A4D7E
split-complementary
#7D1A7E #4D7E1A #1A7E4B
monochromatic
#190519 #4B104B #7D1A7E #AF24B1 #D53CD7

Accessibility & contrast

On white

9.05
#7D1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7D1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1A7E
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1A7E#FFFFFF#000000##FFFFFF
##7D1A7E1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#812B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1a7e;
/* rgb */ color: rgb(125, 26, 126);
/* oklch */ color: oklch(42.7% 0.174 327.7);
Tailwind
colors: {
  custom: {
    50: '#a664a4',
    500: '#7d1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1a7e;
$custom-light: #a664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1a7e",
  "rgb": {
    "r": 125,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 299.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42729,
    "c": 0.17375,
    "h": 327.7
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#7D1A7E
secondary
#43B242
accent
#E93F41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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