#7A186D#7A186D

#7A186D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.161 H 334.3°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#7A186D
RGBrgb(122, 24, 109)
HSLhsl(308, 67%, 29%)
HSVhsv(308, 80%, 48%)
CMYKcmyk(0%, 80.3%, 10.7%, 52.2%)
CIE-LABlab(29.15, 49.89, -25.49)
CIE-LCHlch(29.15, 56.02, 332.93°)
OKLaboklab(41.06% 0.1451 -0.0698)
OKLCHoklch(41.06% 0.161 334.3)
XYZxyz(11.1131, 5.8960, 15.0178)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A186D #187A25
analogous
#56187A #7A186D #7A183C
triadic
#7A186D #6D7A18 #186D7A
tetradic
#7A186D #7A5618 #187A25 #183C7A
square
#7A186D #7A5618 #187A25 #183C7A
split-complementary
#7A186D #3C7A18 #187A56
monochromatic
#1A0517 #470E3F #7A186D #AD229B #D735C2

Accessibility & contrast

On white

9.64
#7A186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7A186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A186D
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A186D#FFFFFF#000000##FFFFFF
##7A186D1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C6F
Deuteranopia (green-blind)
#3C4A6B
Tritanopia (blue-blind)
#802242
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a186d;
/* rgb */ color: rgb(122, 24, 109);
/* oklch */ color: oklch(41.1% 0.161 334.3);
Tailwind
colors: {
  custom: {
    50: '#a46297',
    500: '#7a186d',
    950: '#000000',
  },
}
SCSS
$custom: #7a186d;
$custom-light: #a46297;
$custom-dark: #000000;
JSON
{
  "hex": "#7a186d",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 307.959,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41061,
    "c": 0.16106,
    "h": 334.3
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#7A186D
secondary
#3FAF4E
accent
#EA553E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A186D

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

Preview Lab → · Contrast checker → · Palette generator →

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