#7A186A#7A186A

#7A186A is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.159 H 335.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7A186A
RGBrgb(122, 24, 106)
HSLhsl(310, 67%, 29%)
HSVhsv(310, 80%, 48%)
CMYKcmyk(0%, 80.3%, 13.1%, 52.2%)
CIE-LABlab(28.99, 49.42, -23.82)
CIE-LCHlch(28.99, 54.86, 334.27°)
OKLaboklab(40.89% 0.1449 -0.065)
OKLCHoklch(40.89% 0.159 335.8)
XYZxyz(10.9544, 5.8325, 14.1817)
Luminance0.0583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A186A #187A28
analogous
#59187A #7A186A #7A1839
triadic
#7A186A #6A7A18 #186A7A
tetradic
#7A186A #7A5918 #187A28 #18397A
square
#7A186A #7A5918 #187A28 #18397A
split-complementary
#7A186A #397A18 #187A59
monochromatic
#1A0516 #470E3E #7A186A #AD2296 #D735BD

Accessibility & contrast

On white

9.69
#7A186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A186A
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A186A#FFFFFF#000000##FFFFFF
##7A186A1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193B6C
Deuteranopia (green-blind)
#3D4968
Tritanopia (blue-blind)
#812040
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a186a;
/* rgb */ color: rgb(122, 24, 106);
/* oklch */ color: oklch(40.9% 0.159 335.8);
Tailwind
colors: {
  custom: {
    50: '#a46195',
    500: '#7a186a',
    950: '#000000',
  },
}
SCSS
$custom: #7a186a;
$custom-light: #a46195;
$custom-dark: #000000;
JSON
{
  "hex": "#7a186a",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 309.796,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.40892,
    "c": 0.15885,
    "h": 335.8
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#7A186A
secondary
#3FAF51
accent
#EA5A3E
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A186A

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

Preview Lab → · Contrast checker → · Palette generator →

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