#7A1870#7A1870

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

Color values

HEX#7A1870
RGBrgb(122, 24, 112)
HSLhsl(306, 67%, 29%)
HSVhsv(306, 80%, 48%)
CMYKcmyk(0%, 80.3%, 8.2%, 52.2%)
CIE-LABlab(29.32, 50.37, -27.15)
CIE-LCHlch(29.32, 57.22, 331.67°)
OKLaboklab(41.24% 0.1453 -0.0746)
OKLCHoklch(41.24% 0.163 332.8)
XYZxyz(11.2774, 5.9617, 15.8829)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A1870 #187A22
analogous
#53187A #7A1870 #7A183F
triadic
#7A1870 #707A18 #18707A
tetradic
#7A1870 #7A5318 #187A22 #183F7A
square
#7A1870 #7A5318 #187A22 #183F7A
split-complementary
#7A1870 #3F7A18 #187A53
monochromatic
#1A0517 #470E41 #7A1870 #AD229F #D735C7

Accessibility & contrast

On white

9.58
#7A1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7A1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A1870
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A1870#FFFFFF#000000##FFFFFF
##7A18701.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C72
Deuteranopia (green-blind)
#3A4A6E
Tritanopia (blue-blind)
#802343
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a1870;
/* rgb */ color: rgb(122, 24, 112);
/* oklch */ color: oklch(41.2% 0.163 332.8);
Tailwind
colors: {
  custom: {
    50: '#a46299',
    500: '#7a1870',
    950: '#000000',
  },
}
SCSS
$custom: #7a1870;
$custom-light: #a46299;
$custom-dark: #000000;
JSON
{
  "hex": "#7a1870",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 306.122,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41235,
    "c": 0.16331,
    "h": 332.8
  },
  "luminance": 0.05961
}

Semantic roles & 50–950 ramp

primary
#7A1870
secondary
#3FAF4A
accent
#EA4F3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7A1870

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

Preview Lab → · Contrast checker → · Palette generator →

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