#7B1872#7B1872

#7B1872 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.165 H 332.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#7B1872
RGBrgb(123, 24, 114)
HSLhsl(305, 67%, 29%)
HSVhsv(305, 80%, 48%)
CMYKcmyk(0%, 80.5%, 7.3%, 51.8%)
CIE-LABlab(29.61, 50.92, -27.95)
CIE-LCHlch(29.61, 58.08, 331.24°)
OKLaboklab(41.52% 0.1464 -0.0769)
OKLCHoklch(41.52% 0.165 332.3)
XYZxyz(11.5323, 6.0801, 16.4825)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1872 #187B21
analogous
#53187B #7B1872 #7B1841
triadic
#7B1872 #727B18 #18727B
tetradic
#7B1872 #7B5318 #187B21 #18417B
square
#7B1872 #7B5318 #187B21 #18417B
split-complementary
#7B1872 #417B18 #187B53
monochromatic
#1A0518 #480E43 #7B1872 #AE22A1 #D836C9

Accessibility & contrast

On white

9.48
#7B1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7B1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1872
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1872#FFFFFF#000000##FFFFFF
##7B18721.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#812444
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1872;
/* rgb */ color: rgb(123, 24, 114);
/* oklch */ color: oklch(41.5% 0.165 332.3);
Tailwind
colors: {
  custom: {
    50: '#a5629b',
    500: '#7b1872',
    950: '#000000',
  },
}
SCSS
$custom: #7b1872;
$custom-light: #a5629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1872",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 305.455,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4152,
    "c": 0.16535,
    "h": 332.3
  },
  "luminance": 0.06079
}

Semantic roles & 50–950 ramp

primary
#7B1872
secondary
#3FB049
accent
#EA4D3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1872

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

Preview Lab → · Contrast checker → · Palette generator →

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