#7B1A72#7B1A72

#7B1A72 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.163 H 332.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7B1A72
RGBrgb(123, 26, 114)
HSLhsl(306, 65%, 29%)
HSVhsv(306, 79%, 48%)
CMYKcmyk(0%, 78.9%, 7.3%, 51.8%)
CIE-LABlab(29.83, 50.31, -27.61)
CIE-LCHlch(29.83, 57.39, 331.24°)
OKLaboklab(41.67% 0.1446 -0.0759)
OKLCHoklch(41.67% 0.163 332.3)
XYZxyz(11.5751, 6.1656, 16.4968)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1A72 #1A7B23
analogous
#541A7B #7B1A72 #7B1A42
triadic
#7B1A72 #727B1A #1A727B
tetradic
#7B1A72 #7B541A #1A7B23 #1A427B
square
#7B1A72 #7B541A #1A7B23 #1A427B
split-complementary
#7B1A72 #427B1A #1A7B54
monochromatic
#190517 #480F43 #7B1A72 #AE25A1 #D53AC7

Accessibility & contrast

On white

9.40
#7B1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1A72
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1A72#FFFFFF#000000##FFFFFF
##7B1A721.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#812545
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1a72;
/* rgb */ color: rgb(123, 26, 114);
/* oklch */ color: oklch(41.7% 0.163 332.3);
Tailwind
colors: {
  custom: {
    50: '#a5639b',
    500: '#7b1a72',
    950: '#000000',
  },
}
SCSS
$custom: #7b1a72;
$custom-light: #a5639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1a72",
  "rgb": {
    "r": 123,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 305.567,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41672,
    "c": 0.16333,
    "h": 332.3
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#7B1A72
secondary
#42AF4C
accent
#E84F40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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