#7C1F82#7C1F82

#7C1F82 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.171 H 325.4°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7C1F82
RGBrgb(124, 31, 130)
HSLhsl(296, 61%, 32%)
HSVhsv(296, 76%, 51%)
CMYKcmyk(4.6%, 76.2%, 0%, 49%)
CIE-LABlab(31.53, 51.64, -35.00)
CIE-LCHlch(31.53, 62.38, 325.87°)
OKLaboklab(43.23% 0.141 -0.0974)
OKLCHoklch(43.23% 0.171 325.4)
XYZxyz(12.8311, 6.8776, 21.7664)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F82 #25821F
analogous
#4B1F82 #7C1F82 #821F57
triadic
#7C1F82 #827C1F #1F827C
tetradic
#7C1F82 #824B1F #25821F #1F5782
square
#7C1F82 #824B1F #25821F #1F5782
split-complementary
#7C1F82 #57821F #1F824B
monochromatic
#1E071F #4D1351 #7C1F82 #AB2BB3 #CB48D3

Accessibility & contrast

On white

8.84
#7C1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1F82
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F82#FFFFFF#000000##FFFFFF
##7C1F821.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#344E80
Tritanopia (blue-blind)
#7F304F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c1f82;
/* rgb */ color: rgb(124, 31, 130);
/* oklch */ color: oklch(43.2% 0.171 325.4);
Tailwind
colors: {
  custom: {
    50: '#a565a7',
    500: '#7c1f82',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f82;
$custom-light: #a565a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f82",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 296.364,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43226,
    "c": 0.17134,
    "h": 325.4
  },
  "luminance": 0.06877
}

Semantic roles & 50–950 ramp

primary
#7C1F82
secondary
#4FB548
accent
#E5434D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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