#7D186F#7D186F

#7D186F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.164 H 334.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7D186F
RGBrgb(125, 24, 111)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 80.8%, 11.2%, 51%)
CIE-LABlab(29.82, 50.91, -25.68)
CIE-LCHlch(29.82, 57.02, 333.23°)
OKLaboklab(41.68% 0.1484 -0.0703)
OKLCHoklch(41.68% 0.164 334.6)
XYZxyz(11.6535, 6.1620, 15.6115)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D186F #187D26
analogous
#59187D #7D186F #7D183D
triadic
#7D186F #6F7D18 #186F7D
tetradic
#7D186F #7D5918 #187D26 #183D7D
square
#7D186F #7D5918 #187D26 #183D7D
split-complementary
#7D186F #3D7D18 #187D59
monochromatic
#1A0517 #4A0E41 #7D186F #B0229D #D937C2

Accessibility & contrast

On white

9.41
#7D186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7D186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D186F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D186F#FFFFFF#000000##FFFFFF
##7D186F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#832243
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d186f;
/* rgb */ color: rgb(125, 24, 111);
/* oklch */ color: oklch(41.7% 0.164 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66298',
    500: '#7d186f',
    950: '#000000',
  },
}
SCSS
$custom: #7d186f;
$custom-light: #a66298;
$custom-dark: #000000;
JSON
{
  "hex": "#7d186f",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 308.317,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41681,
    "c": 0.16419,
    "h": 334.6
  },
  "luminance": 0.06161
}

Semantic roles & 50–950 ramp

primary
#7D186F
secondary
#3FB24F
accent
#EB553D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D186F

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

Preview Lab → · Contrast checker → · Palette generator →

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