#7D187D#7D187D

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

Color values

HEX#7D187D
RGBrgb(125, 24, 125)
HSLhsl(300, 68%, 29%)
HSVhsv(300, 81%, 49%)
CMYKcmyk(0%, 80.8%, 0%, 51%)
CIE-LABlab(30.63, 53.19, -33.29)
CIE-LCHlch(30.63, 62.75, 327.96°)
OKLaboklab(42.52% 0.1485 -0.0923)
OKLCHoklch(42.52% 0.175 328.1)
XYZxyz(12.4856, 6.4948, 19.9941)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D187D #187D18
analogous
#4B187D #7D187D #7D184B
triadic
#7D187D #7D7D18 #187D7D
tetradic
#7D187D #7D4B18 #187D18 #184B7D
square
#7D187D #7D4B18 #187D18 #184B7D
split-complementary
#7D187D #4B7D18 #187D4B
monochromatic
#1A051A #4A0E4A #7D187D #B022B0 #D937D9

Accessibility & contrast

On white

9.14
#7D187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7D187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D187D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D187D#FFFFFF#000000##FFFFFF
##7D187D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#812A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d187d;
/* rgb */ color: rgb(125, 24, 125);
/* oklch */ color: oklch(42.5% 0.175 328.1);
Tailwind
colors: {
  custom: {
    50: '#a663a3',
    500: '#7d187d',
    950: '#000000',
  },
}
SCSS
$custom: #7d187d;
$custom-light: #a663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d187d",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42522,
    "c": 0.17486,
    "h": 328.1
  },
  "luminance": 0.06494
}

Semantic roles & 50–950 ramp

primary
#7D187D
secondary
#3FB23F
accent
#EB3D3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D187D

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

Preview Lab → · Contrast checker → · Palette generator →

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