#7D186D#7D186D

#7D186D is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.163 H 335.6°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7D186D
RGBrgb(125, 24, 109)
HSLhsl(310, 68%, 29%)
HSVhsv(310, 81%, 49%)
CMYKcmyk(0%, 80.8%, 12.8%, 51%)
CIE-LABlab(29.71, 50.60, -24.57)
CIE-LCHlch(29.71, 56.25, 334.10°)
OKLaboklab(41.57% 0.1482 -0.0671)
OKLCHoklch(41.57% 0.163 335.6)
XYZxyz(11.5446, 6.1184, 15.0380)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D186D #187D28
analogous
#5B187D #7D186D #7D183B
triadic
#7D186D #6D7D18 #186D7D
tetradic
#7D186D #7D5B18 #187D28 #183B7D
square
#7D186D #7D5B18 #187D28 #183B7D
split-complementary
#7D186D #3B7D18 #187D5B
monochromatic
#1A0516 #4A0E40 #7D186D #B0229A #D937BF

Accessibility & contrast

On white

9.44
#7D186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7D186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D186D
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D186D#FFFFFF#000000##FFFFFF
##7D186D1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193C6F
Deuteranopia (green-blind)
#3E4B6B
Tritanopia (blue-blind)
#842142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d186d;
/* rgb */ color: rgb(125, 24, 109);
/* oklch */ color: oklch(41.6% 0.163 335.6);
Tailwind
colors: {
  custom: {
    50: '#a66297',
    500: '#7d186d',
    950: '#000000',
  },
}
SCSS
$custom: #7d186d;
$custom-light: #a66297;
$custom-dark: #000000;
JSON
{
  "hex": "#7d186d",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 309.505,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41569,
    "c": 0.16274,
    "h": 335.6
  },
  "luminance": 0.06117
}

Semantic roles & 50–950 ramp

primary
#7D186D
secondary
#3FB251
accent
#EB593D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D186D

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

Preview Lab → · Contrast checker → · Palette generator →

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