#7E187C#7E187C

#7E187C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.175 H 329.0°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7E187C
RGBrgb(126, 24, 124)
HSLhsl(301, 68%, 29%)
HSVhsv(301, 81%, 49%)
CMYKcmyk(0%, 81%, 1.6%, 50.6%)
CIE-LABlab(30.75, 53.23, -32.45)
CIE-LCHlch(30.75, 62.35, 328.63°)
OKLaboklab(42.62% 0.1496 -0.0899)
OKLCHoklch(42.62% 0.175 329)
XYZxyz(12.5688, 6.5451, 19.6662)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E187C #187E1A
analogous
#4D187E #7E187C #7E1849
triadic
#7E187C #7C7E18 #187C7E
tetradic
#7E187C #7E4D18 #187E1A #18497E
square
#7E187C #7E4D18 #187E1A #18497E
split-complementary
#7E187C #497E18 #187E4D
monochromatic
#1A0519 #4B0E49 #7E187C #B122AF #D937D6

Accessibility & contrast

On white

9.10
#7E187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E187C
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E187C#FFFFFF#000000##FFFFFF
##7E187C1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#83294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e187c;
/* rgb */ color: rgb(126, 24, 124);
/* oklch */ color: oklch(42.6% 0.175 329.0);
Tailwind
colors: {
  custom: {
    50: '#a763a2',
    500: '#7e187c',
    950: '#000000',
  },
}
SCSS
$custom: #7e187c;
$custom-light: #a763a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e187c",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 301.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42622,
    "c": 0.17455,
    "h": 329
  },
  "luminance": 0.06544
}

Semantic roles & 50–950 ramp

primary
#7E187C
secondary
#3FB242
accent
#EB403D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E187C

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

Preview Lab → · Contrast checker → · Palette generator →

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