#7C187A#7C187A

#7C187A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.172 H 329.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7C187A
RGBrgb(124, 24, 122)
HSLhsl(301, 68%, 29%)
HSVhsv(301, 81%, 49%)
CMYKcmyk(0%, 80.6%, 1.6%, 51.4%)
CIE-LABlab(30.27, 52.47, -31.98)
CIE-LCHlch(30.27, 61.44, 328.63°)
OKLaboklab(42.17% 0.1475 -0.0886)
OKLCHoklch(42.17% 0.172 329)
XYZxyz(12.1516, 6.3444, 18.9932)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C187A #187C1A
analogous
#4C187C #7C187A #7C1848
triadic
#7C187A #7A7C18 #187A7C
tetradic
#7C187A #7C4C18 #187C1A #18487C
square
#7C187A #7C4C18 #187C1A #18487C
split-complementary
#7C187A #487C18 #187C4C
monochromatic
#1A0519 #490E48 #7C187A #AF22AC #D836D5

Accessibility & contrast

On white

9.26
#7C187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7C187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C187A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C187A#FFFFFF#000000##FFFFFF
##7C187A1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#364C78
Tritanopia (blue-blind)
#802849
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c187a;
/* rgb */ color: rgb(124, 24, 122);
/* oklch */ color: oklch(42.2% 0.172 329.0);
Tailwind
colors: {
  custom: {
    50: '#a562a1',
    500: '#7c187a',
    950: '#000000',
  },
}
SCSS
$custom: #7c187a;
$custom-light: #a562a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c187a",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 301.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4217,
    "c": 0.17203,
    "h": 329
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

primary
#7C187A
secondary
#3FB141
accent
#EA413D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7C187A

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

Preview Lab → · Contrast checker → · Palette generator →

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