#7D1B7C#7D1B7C

#7D1B7C is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.171 H 328.5°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7D1B7C
RGBrgb(125, 27, 124)
HSLhsl(301, 64%, 30%)
HSVhsv(301, 78%, 49%)
CMYKcmyk(0%, 78.4%, 0.8%, 51%)
CIE-LABlab(30.88, 52.12, -32.26)
CIE-LCHlch(30.88, 61.30, 328.25°)
OKLaboklab(42.68% 0.146 -0.0894)
OKLCHoklch(42.68% 0.171 328.5)
XYZxyz(12.4873, 6.6000, 19.6811)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B7C #1B7D1C
analogous
#4D1B7D #7D1B7C #7D1B4B
triadic
#7D1B7C #7C7D1B #1B7C7D
tetradic
#7D1B7C #7D4D1B #1B7D1C #1B4B7D
square
#7D1B7C #7D4D1B #1B7D1C #1B4B7D
split-complementary
#7D1B7C #4B7D1B #1B7D4D
monochromatic
#190519 #4B104A #7D1B7C #AF26AE #D53DD4

Accessibility & contrast

On white

9.05
#7D1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7D1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1B7C
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B7C#FFFFFF#000000##FFFFFF
##7D1B7C1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05417F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#812B4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1b7c;
/* rgb */ color: rgb(125, 27, 124);
/* oklch */ color: oklch(42.7% 0.171 328.5);
Tailwind
colors: {
  custom: {
    50: '#a664a2',
    500: '#7d1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b7c;
$custom-light: #a664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b7c",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 300.612,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4268,
    "c": 0.17116,
    "h": 328.5
  },
  "luminance": 0.06599
}

Semantic roles & 50–950 ramp

primary
#7D1B7C
secondary
#43B144
accent
#E74240
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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