#7A1871#7A1871

#7A1871 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.164 H 332.3°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7A1871
RGBrgb(122, 24, 113)
HSLhsl(306, 67%, 29%)
HSVhsv(306, 80%, 48%)
CMYKcmyk(0%, 80.3%, 7.4%, 52.2%)
CIE-LABlab(29.37, 50.53, -27.70)
CIE-LCHlch(29.37, 57.62, 331.27°)
OKLaboklab(41.29% 0.1453 -0.0762)
OKLCHoklch(41.29% 0.164 332.3)
XYZxyz(11.3334, 5.9841, 16.1777)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1871 #187A21
analogous
#52187A #7A1871 #7A1840
triadic
#7A1871 #717A18 #18717A
tetradic
#7A1871 #7A5218 #187A21 #18407A
square
#7A1871 #7A5218 #187A21 #18407A
split-complementary
#7A1871 #407A18 #187A52
monochromatic
#1A0518 #470E42 #7A1871 #AD22A0 #D735C8

Accessibility & contrast

On white

9.56
#7A1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A1871
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1871#FFFFFF#000000##FFFFFF
##7A18711.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#802444
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a1871;
/* rgb */ color: rgb(122, 24, 113);
/* oklch */ color: oklch(41.3% 0.164 332.3);
Tailwind
colors: {
  custom: {
    50: '#a4629a',
    500: '#7a1871',
    950: '#000000',
  },
}
SCSS
$custom: #7a1871;
$custom-light: #a4629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1871",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 305.51,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41294,
    "c": 0.16406,
    "h": 332.3
  },
  "luminance": 0.05983
}

Semantic roles & 50–950 ramp

primary
#7A1871
secondary
#3FAF49
accent
#EA4E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1871

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

Preview Lab → · Contrast checker → · Palette generator →

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