#7C187C#7C187C

#7C187C is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.174 H 328.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7C187C
RGBrgb(124, 24, 124)
HSLhsl(300, 68%, 29%)
HSVhsv(300, 81%, 49%)
CMYKcmyk(0%, 80.6%, 0%, 51.4%)
CIE-LABlab(30.39, 52.80, -33.05)
CIE-LCHlch(30.39, 62.29, 327.96°)
OKLaboklab(42.3% 0.1474 -0.0917)
OKLCHoklch(42.3% 0.174 328.1)
XYZxyz(12.2768, 6.3945, 19.6525)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C187C #187C18
analogous
#4A187C #7C187C #7C184A
triadic
#7C187C #7C7C18 #187C7C
tetradic
#7C187C #7C4A18 #187C18 #184A7C
square
#7C187C #7C4A18 #187C18 #184A7C
split-complementary
#7C187C #4A7C18 #187C4A
monochromatic
#1A051A #490E49 #7C187C #AF22AF #D836D8

Accessibility & contrast

On white

9.22
#7C187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7C187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C187C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C187C#FFFFFF#000000##FFFFFF
##7C187C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#80294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c187c;
/* rgb */ color: rgb(124, 24, 124);
/* oklch */ color: oklch(42.3% 0.174 328.1);
Tailwind
colors: {
  custom: {
    50: '#a563a2',
    500: '#7c187c',
    950: '#000000',
  },
}
SCSS
$custom: #7c187c;
$custom-light: #a563a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c187c",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 300,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42296,
    "c": 0.1736,
    "h": 328.1
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#7C187C
secondary
#3FB13F
accent
#EA3D3D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C187C

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

Preview Lab → · Contrast checker → · Palette generator →

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