#7C186C#7C186C

#7C186C is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.161 H 335.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#7C186C
RGBrgb(124, 24, 108)
HSLhsl(310, 68%, 29%)
HSVhsv(310, 81%, 49%)
CMYKcmyk(0%, 80.6%, 12.9%, 51.4%)
CIE-LABlab(29.47, 50.21, -24.32)
CIE-LCHlch(29.47, 55.79, 334.15°)
OKLaboklab(41.34% 0.1471 -0.0664)
OKLCHoklch(41.34% 0.161 335.7)
XYZxyz(11.3458, 6.0221, 14.7493)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C186C #187C28
analogous
#5A187C #7C186C #7C183A
triadic
#7C186C #6C7C18 #186C7C
tetradic
#7C186C #7C5A18 #187C28 #183A7C
square
#7C186C #7C5A18 #187C28 #183A7C
split-complementary
#7C186C #3A7C18 #187C5A
monochromatic
#1A0516 #490E3F #7C186C #AF2299 #D836BE

Accessibility & contrast

On white

9.53
#7C186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7C186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C186C
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C186C#FFFFFF#000000##FFFFFF
##7C186C1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193C6E
Deuteranopia (green-blind)
#3E4B6A
Tritanopia (blue-blind)
#832141
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c186c;
/* rgb */ color: rgb(124, 24, 108);
/* oklch */ color: oklch(41.3% 0.161 335.7);
Tailwind
colors: {
  custom: {
    50: '#a56296',
    500: '#7c186c',
    950: '#000000',
  },
}
SCSS
$custom: #7c186c;
$custom-light: #a56296;
$custom-dark: #000000;
JSON
{
  "hex": "#7c186c",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 309.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41343,
    "c": 0.16144,
    "h": 335.7
  },
  "luminance": 0.06021
}

Semantic roles & 50–950 ramp

primary
#7C186C
secondary
#3FB151
accent
#EA593D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C186C

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

Preview Lab → · Contrast checker → · Palette generator →

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