#7B1A71#7B1A71

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

Color values

HEX#7B1A71
RGBrgb(123, 26, 113)
HSLhsl(306, 65%, 29%)
HSVhsv(306, 79%, 48%)
CMYKcmyk(0%, 78.9%, 8.1%, 51.8%)
CIE-LABlab(29.77, 50.15, -27.06)
CIE-LCHlch(29.77, 56.98, 331.65°)
OKLaboklab(41.61% 0.1446 -0.0744)
OKLCHoklch(41.61% 0.163 332.8)
XYZxyz(11.5185, 6.1430, 16.1986)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A71 #1A7B24
analogous
#551A7B #7B1A71 #7B1A40
triadic
#7B1A71 #717B1A #1A717B
tetradic
#7B1A71 #7B551A #1A7B24 #1A407B
square
#7B1A71 #7B551A #1A7B24 #1A407B
split-complementary
#7B1A71 #407B1A #1A7B55
monochromatic
#190517 #480F43 #7B1A71 #AE259F #D53AC5

Accessibility & contrast

On white

9.42
#7B1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1A71
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A71#FFFFFF#000000##FFFFFF
##7B1A711.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#812544
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1a71;
/* rgb */ color: rgb(123, 26, 113);
/* oklch */ color: oklch(41.6% 0.163 332.8);
Tailwind
colors: {
  custom: {
    50: '#a5639a',
    500: '#7b1a71',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a71;
$custom-light: #a5639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a71",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 306.186,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41614,
    "c": 0.16256,
    "h": 332.8
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#7B1A71
secondary
#42AF4D
accent
#E85140
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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