#7D1B82#7D1B82

#7D1B82 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.176 H 325.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7D1B82
RGBrgb(125, 27, 130)
HSLhsl(297, 66%, 31%)
HSVhsv(297, 79%, 51%)
CMYKcmyk(3.8%, 79.2%, 0%, 49%)
CIE-LABlab(31.25, 53.16, -35.44)
CIE-LCHlch(31.25, 63.89, 326.31°)
OKLaboklab(43.06% 0.1458 -0.0986)
OKLCHoklch(43.06% 0.176 325.9)
XYZxyz(12.8784, 6.7564, 21.7406)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B82 #20821B
analogous
#491B82 #7D1B82 #821B53
triadic
#7D1B82 #827D1B #1B827D
tetradic
#7D1B82 #82491B #20821B #1B5382
square
#7D1B82 #82491B #20821B #1B5382
split-complementary
#7D1B82 #53821B #1B8249
monochromatic
#1C061D #4C104F #7D1B82 #AE26B5 #D040D7

Accessibility & contrast

On white

8.93
#7D1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7D1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1B82
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B82#FFFFFF#000000##FFFFFF
##7D1B821.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#344E80
Tritanopia (blue-blind)
#802E4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1b82;
/* rgb */ color: rgb(125, 27, 130);
/* oklch */ color: oklch(43.1% 0.176 325.9);
Tailwind
colors: {
  custom: {
    50: '#a664a7',
    500: '#7d1b82',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b82;
$custom-light: #a664a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b82",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 297.087,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4306,
    "c": 0.17599,
    "h": 325.9
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#7D1B82
secondary
#49B643
accent
#E93F47
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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