#7D187C#7D187C

#7D187C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.174 H 328.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7D187C
RGBrgb(125, 24, 124)
HSLhsl(301, 68%, 29%)
HSVhsv(301, 81%, 49%)
CMYKcmyk(0%, 80.8%, 0.8%, 51%)
CIE-LABlab(30.57, 53.02, -32.75)
CIE-LCHlch(30.57, 62.32, 328.29°)
OKLaboklab(42.46% 0.1485 -0.0908)
OKLCHoklch(42.46% 0.174 328.6)
XYZxyz(12.4220, 6.4694, 19.6593)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D187C #187D19
analogous
#4C187D #7D187C #7D184A
triadic
#7D187C #7C7D18 #187C7D
tetradic
#7D187C #7D4C18 #187D19 #184A7D
square
#7D187C #7D4C18 #187D19 #184A7D
split-complementary
#7D187C #4A7D18 #187D4C
monochromatic
#1A0519 #4A0E49 #7D187C #B022AF #D937D7

Accessibility & contrast

On white

9.16
#7D187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D187C
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D187C#FFFFFF#000000##FFFFFF
##7D187C1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#364C7A
Tritanopia (blue-blind)
#81294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d187c;
/* rgb */ color: rgb(125, 24, 124);
/* oklch */ color: oklch(42.5% 0.174 328.6);
Tailwind
colors: {
  custom: {
    50: '#a663a2',
    500: '#7d187c',
    950: '#000000',
  },
}
SCSS
$custom: #7d187c;
$custom-light: #a663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d187c",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 300.594,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42459,
    "c": 0.17407,
    "h": 328.6
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#7D187C
secondary
#3FB240
accent
#EB3F3D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D187C

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

Preview Lab → · Contrast checker → · Palette generator →

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