#7A1F82#7A1F82

#7A1F82 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.170 H 324.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7A1F82
RGBrgb(122, 31, 130)
HSLhsl(295, 61%, 32%)
HSVhsv(295, 76%, 51%)
CMYKcmyk(6.2%, 76.2%, 0%, 49%)
CIE-LABlab(31.18, 51.19, -35.57)
CIE-LCHlch(31.18, 62.34, 325.21°)
OKLaboklab(42.92% 0.1386 -0.0991)
OKLCHoklch(42.92% 0.17 324.4)
XYZxyz(12.5450, 6.7300, 21.7530)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F82 #27821F
analogous
#491F82 #7A1F82 #821F59
triadic
#7A1F82 #827A1F #1F827A
tetradic
#7A1F82 #82491F #27821F #1F5982
square
#7A1F82 #82491F #27821F #1F5982
split-complementary
#7A1F82 #59821F #1F8249
monochromatic
#1D071F #4C1351 #7A1F82 #A82BB3 #C848D3

Accessibility & contrast

On white

8.95
#7A1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1F82
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F82#FFFFFF#000000##FFFFFF
##7A1F821.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#324D80
Tritanopia (blue-blind)
#7D314F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1f82;
/* rgb */ color: rgb(122, 31, 130);
/* oklch */ color: oklch(42.9% 0.170 324.4);
Tailwind
colors: {
  custom: {
    50: '#a465a7',
    500: '#7a1f82',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f82;
$custom-light: #a465a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f82",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 295.152,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42916,
    "c": 0.1704,
    "h": 324.4
  },
  "luminance": 0.06729
}

Semantic roles & 50–950 ramp

primary
#7A1F82
secondary
#51B548
accent
#E54350
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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