#7C187D#7C187D

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

Color values

HEX#7C187D
RGBrgb(124, 24, 125)
HSLhsl(299, 68%, 29%)
HSVhsv(299, 81%, 49%)
CMYKcmyk(0.8%, 80.8%, 0%, 51%)
CIE-LABlab(30.45, 52.97, -33.58)
CIE-LCHlch(30.45, 62.72, 327.63°)
OKLaboklab(42.36% 0.1474 -0.0932)
OKLCHoklch(42.36% 0.174 327.7)
XYZxyz(12.3403, 6.4199, 19.9873)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C187D #197D18
analogous
#4A187D #7C187D #7D184C
triadic
#7C187D #7D7C18 #187D7C
tetradic
#7C187D #7D4A18 #197D18 #184C7D
square
#7C187D #7D4A18 #197D18 #184C7D
split-complementary
#7C187D #4C7D18 #187D4A
monochromatic
#19051A #490E4A #7C187D #AF22B0 #D737D9

Accessibility & contrast

On white

9.20
#7C187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C187D
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C187D#FFFFFF#000000##FFFFFF
##7C187D1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#802A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c187d;
/* rgb */ color: rgb(124, 24, 125);
/* oklch */ color: oklch(42.4% 0.174 327.7);
Tailwind
colors: {
  custom: {
    50: '#a563a3',
    500: '#7c187d',
    950: '#000000',
  },
}
SCSS
$custom: #7c187d;
$custom-light: #a563a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c187d",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 299.406,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42359,
    "c": 0.17438,
    "h": 327.7
  },
  "luminance": 0.06419
}

Semantic roles & 50–950 ramp

primary
#7C187D
secondary
#40B23F
accent
#EB3D3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C187D

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

Preview Lab → · Contrast checker → · Palette generator →

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