#7C187E#7C187E

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

Color values

HEX#7C187E
RGBrgb(124, 24, 126)
HSLhsl(299, 68%, 29%)
HSVhsv(299, 81%, 49%)
CMYKcmyk(1.6%, 81%, 0%, 50.6%)
CIE-LABlab(30.51, 53.15, -34.11)
CIE-LCHlch(30.51, 63.15, 327.30°)
OKLaboklab(42.42% 0.1473 -0.0948)
OKLCHoklch(42.42% 0.175 327.2)
XYZxyz(12.4045, 6.4456, 20.3254)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C187E #1A7E18
analogous
#49187E #7C187E #7E184D
triadic
#7C187E #7E7C18 #187E7C
tetradic
#7C187E #7E4918 #1A7E18 #184D7E
square
#7C187E #7E4918 #1A7E18 #184D7E
split-complementary
#7C187E #4D7E18 #187E49
monochromatic
#19051A #490E4B #7C187E #AF22B1 #D637D9

Accessibility & contrast

On white

9.17
#7C187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C187E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C187E#FFFFFF#000000##FFFFFF
##7C187E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#802A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c187e;
/* rgb */ color: rgb(124, 24, 126);
/* oklch */ color: oklch(42.4% 0.175 327.2);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7c187e',
    950: '#000000',
  },
}
SCSS
$custom: #7c187e;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c187e",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 298.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42423,
    "c": 0.17518,
    "h": 327.2
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#7C187E
secondary
#42B23F
accent
#EB3D40
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C187E

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

Preview Lab → · Contrast checker → · Palette generator →

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