#7C187B#7C187B

#7C187B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.173 H 328.6°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7C187B
RGBrgb(124, 24, 123)
HSLhsl(301, 68%, 29%)
HSVhsv(301, 81%, 49%)
CMYKcmyk(0%, 80.6%, 0.8%, 51.4%)
CIE-LABlab(30.33, 52.63, -32.52)
CIE-LCHlch(30.33, 61.87, 328.29°)
OKLaboklab(42.23% 0.1475 -0.0901)
OKLCHoklch(42.23% 0.173 328.6)
XYZxyz(12.2138, 6.3693, 19.3212)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C187B #187C19
analogous
#4B187C #7C187B #7C1849
triadic
#7C187B #7B7C18 #187B7C
tetradic
#7C187B #7C4B18 #187C19 #18497C
square
#7C187B #7C4B18 #187C19 #18497C
split-complementary
#7C187B #497C18 #187C4B
monochromatic
#1A0519 #490E48 #7C187B #AF22AE #D836D7

Accessibility & contrast

On white

9.24
#7C187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C187B
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C187B#FFFFFF#000000##FFFFFF
##7C187B1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#802949
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c187b;
/* rgb */ color: rgb(124, 24, 123);
/* oklch */ color: oklch(42.2% 0.173 328.6);
Tailwind
colors: {
  custom: {
    50: '#a563a1',
    500: '#7c187b',
    950: '#000000',
  },
}
SCSS
$custom: #7c187b;
$custom-light: #a563a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c187b",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 300.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42233,
    "c": 0.17281,
    "h": 328.6
  },
  "luminance": 0.06368
}

Semantic roles & 50–950 ramp

primary
#7C187B
secondary
#3FB140
accent
#EA3F3D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C187B

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

Preview Lab → · Contrast checker → · Palette generator →

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