#7A1F71#7A1F71

#7A1F71 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.156 H 332.3°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7A1F71
RGBrgb(122, 31, 113)
HSLhsl(306, 59%, 30%)
HSVhsv(306, 75%, 48%)
CMYKcmyk(0%, 74.6%, 7.4%, 52.2%)
CIE-LABlab(30.18, 48.21, -26.42)
CIE-LCHlch(30.18, 54.98, 331.27°)
OKLaboklab(41.88% 0.1385 -0.0726)
OKLCHoklch(41.88% 0.156 332.3)
XYZxyz(11.4967, 6.3107, 16.2322)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1F71 #1F7A28
analogous
#551F7A #7A1F71 #7A1F44
triadic
#7A1F71 #717A1F #1F717A
tetradic
#7A1F71 #7A551F #1F7A28 #1F447A
square
#7A1F71 #7A551F #1F7A28 #1F447A
split-complementary
#7A1F71 #447A1F #1F7A55
monochromatic
#180617 #491344 #7A1F71 #AB2B9E #CF44C2

Accessibility & contrast

On white

9.28
#7A1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7A1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1F71
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1F71#FFFFFF#000000##FFFFFF
##7A1F711.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#3C4C6F
Tritanopia (blue-blind)
#7F2946
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a1f71;
/* rgb */ color: rgb(122, 31, 113);
/* oklch */ color: oklch(41.9% 0.156 332.3);
Tailwind
colors: {
  custom: {
    50: '#a4649a',
    500: '#7a1f71',
    950: '#000000',
  },
}
SCSS
$custom: #7a1f71;
$custom-light: #a4649a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1f71",
  "rgb": {
    "r": 122,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 305.934,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.41876,
    "c": 0.15639,
    "h": 332.3
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#7A1F71
secondary
#47AD52
accent
#E35545
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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