#7D186E#7D186E

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

Color values

HEX#7D186E
RGBrgb(125, 24, 110)
HSLhsl(309, 68%, 29%)
HSVhsv(309, 81%, 49%)
CMYKcmyk(0%, 80.8%, 12%, 51%)
CIE-LABlab(29.76, 50.75, -25.13)
CIE-LCHlch(29.76, 56.63, 333.66°)
OKLaboklab(41.63% 0.1483 -0.0687)
OKLCHoklch(41.63% 0.163 335.1)
XYZxyz(11.5987, 6.1401, 15.3231)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D186E #187D27
analogous
#5A187D #7D186E #7D183C
triadic
#7D186E #6E7D18 #186E7D
tetradic
#7D186E #7D5A18 #187D27 #183C7D
square
#7D186E #7D5A18 #187D27 #183C7D
split-complementary
#7D186E #3C7D18 #187D5A
monochromatic
#1A0517 #4A0E41 #7D186E #B0229B #D937C1

Accessibility & contrast

On white

9.43
#7D186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D186E
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D186E#FFFFFF#000000##FFFFFF
##7D186E1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183D70
Deuteranopia (green-blind)
#3E4B6C
Tritanopia (blue-blind)
#842142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d186e;
/* rgb */ color: rgb(125, 24, 110);
/* oklch */ color: oklch(41.6% 0.163 335.1);
Tailwind
colors: {
  custom: {
    50: '#a66298',
    500: '#7d186e',
    950: '#000000',
  },
}
SCSS
$custom: #7d186e;
$custom-light: #a66298;
$custom-dark: #000000;
JSON
{
  "hex": "#7d186e",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 308.911,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41625,
    "c": 0.16347,
    "h": 335.1
  },
  "luminance": 0.06139
}

Semantic roles & 50–950 ramp

primary
#7D186E
secondary
#3FB250
accent
#EB573D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D186E

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

Preview Lab → · Contrast checker → · Palette generator →

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