#7D1F82#7D1F82

#7D1F82 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.4% C 0.172 H 325.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7D1F82
RGBrgb(125, 31, 130)
HSLhsl(297, 61%, 32%)
HSVhsv(297, 76%, 51%)
CMYKcmyk(3.8%, 76.2%, 0%, 49%)
CIE-LABlab(31.70, 51.86, -34.72)
CIE-LCHlch(31.70, 62.41, 326.20°)
OKLaboklab(43.38% 0.1421 -0.0966)
OKLCHoklch(43.38% 0.172 325.8)
XYZxyz(12.9764, 6.9525, 21.7733)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F82 #24821F
analogous
#4C1F82 #7D1F82 #821F56
triadic
#7D1F82 #827D1F #1F827D
tetradic
#7D1F82 #824C1F #24821F #1F5682
square
#7D1F82 #824C1F #24821F #1F5682
split-complementary
#7D1F82 #56821F #1F824C
monochromatic
#1E071F #4D1351 #7D1F82 #AD2BB3 #CC48D3

Accessibility & contrast

On white

8.79
#7D1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7D1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F82
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F82#FFFFFF#000000##FFFFFF
##7D1F821.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#354F80
Tritanopia (blue-blind)
#80304F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1f82;
/* rgb */ color: rgb(125, 31, 130);
/* oklch */ color: oklch(43.4% 0.172 325.8);
Tailwind
colors: {
  custom: {
    50: '#a666a7',
    500: '#7d1f82',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f82;
$custom-light: #a666a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f82",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 296.97,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43382,
    "c": 0.17183,
    "h": 325.8
  },
  "luminance": 0.06952
}

Semantic roles & 50–950 ramp

primary
#7D1F82
secondary
#4DB548
accent
#E5434B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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