#7A186E#7A186E

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

Color values

HEX#7A186E
RGBrgb(122, 24, 110)
HSLhsl(307, 67%, 29%)
HSVhsv(307, 80%, 48%)
CMYKcmyk(0%, 80.3%, 9.8%, 52.2%)
CIE-LABlab(29.20, 50.05, -26.05)
CIE-LCHlch(29.20, 56.42, 332.51°)
OKLaboklab(41.12% 0.1452 -0.0714)
OKLCHoklch(41.12% 0.162 333.8)
XYZxyz(11.1672, 5.9176, 15.3029)
Luminance0.0592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A186E #187A24
analogous
#55187A #7A186E #7A183D
triadic
#7A186E #6E7A18 #186E7A
tetradic
#7A186E #7A5518 #187A24 #183D7A
square
#7A186E #7A5518 #187A24 #183D7A
split-complementary
#7A186E #3D7A18 #187A55
monochromatic
#1A0517 #470E40 #7A186E #AD229C #D735C3

Accessibility & contrast

On white

9.62
#7A186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A186E
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A186E#FFFFFF#000000##FFFFFF
##7A186E1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#3B4A6C
Tritanopia (blue-blind)
#802242
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a186e;
/* rgb */ color: rgb(122, 24, 110);
/* oklch */ color: oklch(41.1% 0.162 333.8);
Tailwind
colors: {
  custom: {
    50: '#a46298',
    500: '#7a186e',
    950: '#000000',
  },
}
SCSS
$custom: #7a186e;
$custom-light: #a46298;
$custom-dark: #000000;
JSON
{
  "hex": "#7a186e",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 307.347,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41119,
    "c": 0.1618,
    "h": 333.8
  },
  "luminance": 0.05917
}

Semantic roles & 50–950 ramp

primary
#7A186E
secondary
#3FAF4D
accent
#EA533E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7A186E

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

Preview Lab → · Contrast checker → · Palette generator →

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