#7D2187#7D2187

#7D2187 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.174 H 323.6°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7D2187
RGBrgb(125, 33, 135)
HSLhsl(294, 61%, 33%)
HSVhsv(294, 76%, 53%)
CMYKcmyk(7.4%, 75.6%, 0%, 47.1%)
CIE-LABlab(32.25, 52.08, -36.95)
CIE-LCHlch(32.25, 63.85, 324.65°)
OKLaboklab(43.88% 0.14 -0.1031)
OKLCHoklch(43.88% 0.174 323.6)
XYZxyz(13.3741, 7.1978, 23.6018)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2187 #2B8721
analogous
#4A2187 #7D2187 #87215E
triadic
#7D2187 #877D21 #21877D
tetradic
#7D2187 #874A21 #2B8721 #215E87
square
#7D2187 #874A21 #2B8721 #215E87
split-complementary
#7D2187 #5E8721 #21874A
monochromatic
#220925 #4F1556 #7D2187 #AB2DB8 #C74FD4

Accessibility & contrast

On white

8.61
#7D2187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7D2187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2187
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2187#FFFFFF#000000##FFFFFF
##7D21871.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#7F3452
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d2187;
/* rgb */ color: rgb(125, 33, 135);
/* oklch */ color: oklch(43.9% 0.174 323.6);
Tailwind
colors: {
  custom: {
    50: '#a667aa',
    500: '#7d2187',
    950: '#000000',
  },
}
SCSS
$custom: #7d2187;
$custom-light: #a667aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2187",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 294.118,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43877,
    "c": 0.17383,
    "h": 323.6
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

primary
#7D2187
secondary
#57B74D
accent
#E44454
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D2187

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

Preview Lab → · Contrast checker → · Palette generator →

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