#7A1F81#7A1F81

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

Color values

HEX#7A1F81
RGBrgb(122, 31, 129)
HSLhsl(296, 61%, 31%)
HSVhsv(296, 76%, 51%)
CMYKcmyk(5.4%, 76%, 0%, 49.4%)
CIE-LABlab(31.12, 51.01, -35.04)
CIE-LCHlch(31.12, 61.89, 325.51°)
OKLaboklab(42.85% 0.1387 -0.0976)
OKLCHoklch(42.85% 0.17 324.9)
XYZxyz(12.4782, 6.7033, 21.4013)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F81 #26811F
analogous
#491F81 #7A1F81 #811F57
triadic
#7A1F81 #817A1F #1F817A
tetradic
#7A1F81 #81491F #26811F #1F5781
square
#7A1F81 #81491F #26811F #1F5781
split-complementary
#7A1F81 #57811F #1F8149
monochromatic
#1D071E #4B1350 #7A1F81 #A92BB2 #C947D3

Accessibility & contrast

On white

8.97
#7A1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7A1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F81
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F81#FFFFFF#000000##FFFFFF
##7A1F811.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#334D7F
Tritanopia (blue-blind)
#7D304E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7a1f81;
/* rgb */ color: rgb(122, 31, 129);
/* oklch */ color: oklch(42.9% 0.170 324.9);
Tailwind
colors: {
  custom: {
    50: '#a465a6',
    500: '#7a1f81',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f81;
$custom-light: #a465a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f81",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 295.714,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42851,
    "c": 0.16955,
    "h": 324.9
  },
  "luminance": 0.06703
}

Semantic roles & 50–950 ramp

primary
#7A1F81
secondary
#50B448
accent
#E4434F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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