#7A186B#7A186B

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

Color values

HEX#7A186B
RGBrgb(122, 24, 107)
HSLhsl(309, 67%, 29%)
HSVhsv(309, 80%, 48%)
CMYKcmyk(0%, 80.3%, 12.3%, 52.2%)
CIE-LABlab(29.04, 49.58, -24.38)
CIE-LCHlch(29.04, 55.25, 333.82°)
OKLaboklab(40.95% 0.145 -0.0666)
OKLCHoklch(40.95% 0.16 335.3)
XYZxyz(11.0067, 5.8534, 14.4572)
Luminance0.0585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A186B #187A27
analogous
#58187A #7A186B #7A183A
triadic
#7A186B #6B7A18 #186B7A
tetradic
#7A186B #7A5818 #187A27 #183A7A
square
#7A186B #7A5818 #187A27 #183A7A
split-complementary
#7A186B #3A7A18 #187A58
monochromatic
#1A0516 #470E3E #7A186B #AD2298 #D735BE

Accessibility & contrast

On white

9.68
#7A186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A186B
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A186B#FFFFFF#000000##FFFFFF
##7A186B1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183B6D
Deuteranopia (green-blind)
#3C4A69
Tritanopia (blue-blind)
#802140
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a186b;
/* rgb */ color: rgb(122, 24, 107);
/* oklch */ color: oklch(40.9% 0.160 335.3);
Tailwind
colors: {
  custom: {
    50: '#a46195',
    500: '#7a186b',
    950: '#000000',
  },
}
SCSS
$custom: #7a186b;
$custom-light: #a46195;
$custom-dark: #000000;
JSON
{
  "hex": "#7a186b",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 309.184,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.40948,
    "c": 0.15958,
    "h": 335.3
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#7A186B
secondary
#3FAF50
accent
#EA583E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A186B

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

Preview Lab → · Contrast checker → · Palette generator →

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