#7A186C#7A186C

#7A186C is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.160 H 334.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7A186C
RGBrgb(122, 24, 108)
HSLhsl(309, 67%, 29%)
HSVhsv(309, 80%, 48%)
CMYKcmyk(0%, 80.3%, 11.5%, 52.2%)
CIE-LABlab(29.09, 49.73, -24.94)
CIE-LCHlch(29.09, 55.63, 333.37°)
OKLaboklab(41% 0.1451 -0.0682)
OKLCHoklch(41% 0.16 334.8)
XYZxyz(11.0596, 5.8746, 14.7359)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A186C #187A26
analogous
#57187A #7A186C #7A183B
triadic
#7A186C #6C7A18 #186C7A
tetradic
#7A186C #7A5718 #187A26 #183B7A
square
#7A186C #7A5718 #187A26 #183B7A
split-complementary
#7A186C #3B7A18 #187A57
monochromatic
#1A0517 #470E3F #7A186C #AD2299 #D735C0

Accessibility & contrast

On white

9.66
#7A186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7A186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A186C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A186C#FFFFFF#000000##FFFFFF
##7A186C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6E
Deuteranopia (green-blind)
#3C4A6A
Tritanopia (blue-blind)
#802141
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a186c;
/* rgb */ color: rgb(122, 24, 108);
/* oklch */ color: oklch(41.0% 0.160 334.8);
Tailwind
colors: {
  custom: {
    50: '#a46196',
    500: '#7a186c',
    950: '#000000',
  },
}
SCSS
$custom: #7a186c;
$custom-light: #a46196;
$custom-dark: #000000;
JSON
{
  "hex": "#7a186c",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 308.571,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41004,
    "c": 0.16031,
    "h": 334.8
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#7A186C
secondary
#3FAF4F
accent
#EA563E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A186C

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

Preview Lab → · Contrast checker → · Palette generator →

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