#7A1B72#7A1B72

#7A1B72 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.162 H 331.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#7A1B72
RGBrgb(122, 27, 114)
HSLhsl(305, 64%, 29%)
HSVhsv(305, 78%, 48%)
CMYKcmyk(0%, 77.9%, 6.6%, 52.2%)
CIE-LABlab(29.76, 49.75, -27.73)
CIE-LCHlch(29.76, 56.96, 330.86°)
OKLaboklab(41.59% 0.1426 -0.0763)
OKLCHoklch(41.59% 0.162 331.8)
XYZxyz(11.4553, 6.1373, 16.4976)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1B72 #1B7A23
analogous
#531B7A #7A1B72 #7A1B43
triadic
#7A1B72 #727A1B #1B727A
tetradic
#7A1B72 #7A531B #1B7A23 #1B437A
square
#7A1B72 #7A531B #1B7A23 #1B437A
split-complementary
#7A1B72 #437A1B #1B7A53
monochromatic
#190617 #481043 #7A1B72 #AC26A1 #D43CC7

Accessibility & contrast

On white

9.43
#7A1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7A1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1B72
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1B72#FFFFFF#000000##FFFFFF
##7A1B721.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#7F2645
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a1b72;
/* rgb */ color: rgb(122, 27, 114);
/* oklch */ color: oklch(41.6% 0.162 331.8);
Tailwind
colors: {
  custom: {
    50: '#a4639b',
    500: '#7a1b72',
    950: '#000000',
  },
}
SCSS
$custom: #7a1b72;
$custom-light: #a4639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1b72",
  "rgb": {
    "r": 122,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 305.053,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41587,
    "c": 0.16173,
    "h": 331.8
  },
  "luminance": 0.06136
}

Semantic roles & 50–950 ramp

primary
#7A1B72
secondary
#43AE4C
accent
#E74F41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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