#7A1872#7A1872

#7A1872 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.165 H 331.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7A1872
RGBrgb(122, 24, 114)
HSLhsl(305, 67%, 29%)
HSVhsv(305, 80%, 48%)
CMYKcmyk(0%, 80.3%, 6.6%, 52.2%)
CIE-LABlab(29.43, 50.69, -28.25)
CIE-LCHlch(29.43, 58.03, 330.87°)
OKLaboklab(41.35% 0.1453 -0.0778)
OKLCHoklch(41.35% 0.165 331.8)
XYZxyz(11.3900, 6.0067, 16.4759)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1872 #187A20
analogous
#51187A #7A1872 #7A1841
triadic
#7A1872 #727A18 #18727A
tetradic
#7A1872 #7A5118 #187A20 #18417A
square
#7A1872 #7A5118 #187A20 #18417A
split-complementary
#7A1872 #417A18 #187A51
monochromatic
#1A0518 #470E42 #7A1872 #AD22A2 #D735CA

Accessibility & contrast

On white

9.54
#7A1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7A1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1872
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1872#FFFFFF#000000##FFFFFF
##7A18721.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#394A70
Tritanopia (blue-blind)
#7F2544
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a1872;
/* rgb */ color: rgb(122, 24, 114);
/* oklch */ color: oklch(41.4% 0.165 331.8);
Tailwind
colors: {
  custom: {
    50: '#a4629b',
    500: '#7a1872',
    950: '#000000',
  },
}
SCSS
$custom: #7a1872;
$custom-light: #a4629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1872",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 304.898,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41353,
    "c": 0.16483,
    "h": 331.8
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#7A1872
secondary
#3FAF48
accent
#EA4C3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1872

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

Preview Lab → · Contrast checker → · Palette generator →

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