#7C186D#7C186D

#7C186D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.162 H 335.2°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7C186D
RGBrgb(124, 24, 109)
HSLhsl(309, 68%, 29%)
HSVhsv(309, 81%, 49%)
CMYKcmyk(0%, 80.6%, 12.1%, 51.4%)
CIE-LABlab(29.52, 50.36, -24.88)
CIE-LCHlch(29.52, 56.17, 333.71°)
OKLaboklab(41.4% 0.1472 -0.068)
OKLCHoklch(41.4% 0.162 335.2)
XYZxyz(11.3993, 6.0435, 15.0312)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C186D #187C27
analogous
#59187C #7C186D #7C183B
triadic
#7C186D #6D7C18 #186D7C
tetradic
#7C186D #7C5918 #187C27 #183B7C
square
#7C186D #7C5918 #187C27 #183B7C
split-complementary
#7C186D #3B7C18 #187C59
monochromatic
#1A0517 #490E40 #7C186D #AF229A #D836C0

Accessibility & contrast

On white

9.51
#7C186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7C186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C186D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C186D#FFFFFF#000000##FFFFFF
##7C186D1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6F
Deuteranopia (green-blind)
#3D4B6B
Tritanopia (blue-blind)
#822142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c186d;
/* rgb */ color: rgb(124, 24, 109);
/* oklch */ color: oklch(41.4% 0.162 335.2);
Tailwind
colors: {
  custom: {
    50: '#a56297',
    500: '#7c186d',
    950: '#000000',
  },
}
SCSS
$custom: #7c186d;
$custom-light: #a56297;
$custom-dark: #000000;
JSON
{
  "hex": "#7c186d",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 309,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41399,
    "c": 0.16217,
    "h": 335.2
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#7C186D
secondary
#3FB150
accent
#EA573D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C186D

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

Preview Lab → · Contrast checker → · Palette generator →

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