#7C186F#7C186F

#7C186F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.164 H 334.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#7C186F
RGBrgb(124, 24, 111)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 80.6%, 10.5%, 51.4%)
CIE-LABlab(29.63, 50.67, -25.99)
CIE-LCHlch(29.63, 56.95, 332.85°)
OKLaboklab(41.51% 0.1473 -0.0712)
OKLCHoklch(41.51% 0.164 334.2)
XYZxyz(11.5082, 6.0871, 15.6047)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C186F #187C25
analogous
#57187C #7C186F #7C183D
triadic
#7C186F #6F7C18 #186F7C
tetradic
#7C186F #7C5718 #187C25 #183D7C
square
#7C186F #7C5718 #187C25 #183D7C
split-complementary
#7C186F #3D7C18 #187C57
monochromatic
#1A0517 #490E41 #7C186F #AF229D #D836C3

Accessibility & contrast

On white

9.47
#7C186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C186F
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C186F#FFFFFF#000000##FFFFFF
##7C186F1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D71
Deuteranopia (green-blind)
#3C4B6D
Tritanopia (blue-blind)
#822243
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c186f;
/* rgb */ color: rgb(124, 24, 111);
/* oklch */ color: oklch(41.5% 0.164 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56298',
    500: '#7c186f',
    950: '#000000',
  },
}
SCSS
$custom: #7c186f;
$custom-light: #a56298;
$custom-dark: #000000;
JSON
{
  "hex": "#7c186f",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 307.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41513,
    "c": 0.16364,
    "h": 334.2
  },
  "luminance": 0.06086
}

Semantic roles & 50–950 ramp

primary
#7C186F
secondary
#3FB14E
accent
#EA543D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C186F

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

Preview Lab → · Contrast checker → · Palette generator →

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