#7C186E#7C186E

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

Color values

HEX#7C186E
RGBrgb(124, 24, 110)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 80.6%, 11.3%, 51.4%)
CIE-LABlab(29.58, 50.52, -25.43)
CIE-LCHlch(29.58, 56.56, 333.27°)
OKLaboklab(41.46% 0.1473 -0.0696)
OKLCHoklch(41.46% 0.163 334.7)
XYZxyz(11.4534, 6.0652, 15.3163)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C186E #187C26
analogous
#58187C #7C186E #7C183C
triadic
#7C186E #6E7C18 #186E7C
tetradic
#7C186E #7C5818 #187C26 #183C7C
square
#7C186E #7C5818 #187C26 #183C7C
split-complementary
#7C186E #3C7C18 #187C58
monochromatic
#1A0517 #490E41 #7C186E #AF229B #D836C1

Accessibility & contrast

On white

9.49
#7C186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C186E
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C186E#FFFFFF#000000##FFFFFF
##7C186E1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173C70
Deuteranopia (green-blind)
#3D4B6C
Tritanopia (blue-blind)
#822242
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7c186e;
/* rgb */ color: rgb(124, 24, 110);
/* oklch */ color: oklch(41.5% 0.163 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56298',
    500: '#7c186e',
    950: '#000000',
  },
}
SCSS
$custom: #7c186e;
$custom-light: #a56298;
$custom-dark: #000000;
JSON
{
  "hex": "#7c186e",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 308.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41456,
    "c": 0.16291,
    "h": 334.7
  },
  "luminance": 0.06064
}

Semantic roles & 50–950 ramp

primary
#7C186E
secondary
#3FB14F
accent
#EA563D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C186E

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

Preview Lab → · Contrast checker → · Palette generator →

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