#7D187F#7D187F

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

Color values

HEX#7D187F
RGBrgb(125, 24, 127)
HSLhsl(299, 68%, 30%)
HSVhsv(299, 81%, 50%)
CMYKcmyk(1.6%, 81.1%, 0%, 50.2%)
CIE-LABlab(30.75, 53.53, -34.35)
CIE-LCHlch(30.75, 63.60, 327.31°)
OKLaboklab(42.65% 0.1484 -0.0954)
OKLCHoklch(42.65% 0.176 327.3)
XYZxyz(12.6147, 6.5465, 20.6737)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D187F #1A7F18
analogous
#4A187F #7D187F #7F184E
triadic
#7D187F #7F7D18 #187F7D
tetradic
#7D187F #7F4A18 #1A7F18 #184E7F
square
#7D187F #7F4A18 #1A7F18 #184E7F
split-complementary
#7D187F #4E7F18 #187F4A
monochromatic
#19051A #4A0E4C #7D187F #B022B2 #D638D9

Accessibility & contrast

On white

9.09
#7D187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D187F
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D187F#FFFFFF#000000##FFFFFF
##7D187F1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#344D7D
Tritanopia (blue-blind)
#812B4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d187f;
/* rgb */ color: rgb(125, 24, 127);
/* oklch */ color: oklch(42.6% 0.176 327.3);
Tailwind
colors: {
  custom: {
    50: '#a663a4',
    500: '#7d187f',
    950: '#000000',
  },
}
SCSS
$custom: #7d187f;
$custom-light: #a663a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d187f",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 298.835,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42649,
    "c": 0.17644,
    "h": 327.3
  },
  "luminance": 0.06546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D187F

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

Preview Lab → · Contrast checker → · Palette generator →

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