#7D1E82#7D1E82

#7D1E82 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.173 H 325.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7D1E82
RGBrgb(125, 30, 130)
HSLhsl(297, 63%, 31%)
HSVhsv(297, 77%, 51%)
CMYKcmyk(3.8%, 76.9%, 0%, 49%)
CIE-LABlab(31.58, 52.20, -34.90)
CIE-LCHlch(31.58, 62.79, 326.23°)
OKLaboklab(43.3% 0.1431 -0.0971)
OKLCHoklch(43.3% 0.173 325.8)
XYZxyz(12.9507, 6.9011, 21.7647)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E82 #23821E
analogous
#4B1E82 #7D1E82 #821E55
triadic
#7D1E82 #827D1E #1E827D
tetradic
#7D1E82 #824B1E #23821E #1E5582
square
#7D1E82 #824B1E #23821E #1E5582
split-complementary
#7D1E82 #55821E #1E824B
monochromatic
#1D071F #4D1350 #7D1E82 #AD29B4 #CD46D4

Accessibility & contrast

On white

8.82
#7D1E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7D1E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E82
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E82#FFFFFF#000000##FFFFFF
##7D1E821.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#354E80
Tritanopia (blue-blind)
#802F4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1e82;
/* rgb */ color: rgb(125, 30, 130);
/* oklch */ color: oklch(43.3% 0.173 325.8);
Tailwind
colors: {
  custom: {
    50: '#a665a7',
    500: '#7d1e82',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e82;
$custom-light: #a665a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e82",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 297,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43298,
    "c": 0.17291,
    "h": 325.8
  },
  "luminance": 0.069
}

Semantic roles & 50–950 ramp

primary
#7D1E82
secondary
#4CB547
accent
#E6424A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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