#7D1B7B#7D1B7B

#7D1B7B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.170 H 329.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7D1B7B
RGBrgb(125, 27, 123)
HSLhsl(301, 64%, 30%)
HSVhsv(301, 78%, 49%)
CMYKcmyk(0%, 78.4%, 1.6%, 51%)
CIE-LABlab(30.82, 51.95, -31.72)
CIE-LCHlch(30.82, 60.87, 328.59°)
OKLaboklab(42.62% 0.146 -0.0878)
OKLCHoklch(42.62% 0.17 329)
XYZxyz(12.4244, 6.5748, 19.3497)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B7B #1B7D1D
analogous
#4E1B7D #7D1B7B #7D1B4A
triadic
#7D1B7B #7B7D1B #1B7B7D
tetradic
#7D1B7B #7D4E1B #1B7D1D #1B4A7D
square
#7D1B7B #7D4E1B #1B7D1D #1B4A7D
split-complementary
#7D1B7B #4A7D1B #1B7D4E
monochromatic
#190519 #4B1049 #7D1B7B #AF26AD #D53DD2

Accessibility & contrast

On white

9.07
#7D1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1B7B
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B7B#FFFFFF#000000##FFFFFF
##7D1B7B1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407E
Deuteranopia (green-blind)
#384D79
Tritanopia (blue-blind)
#812A4A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1b7b;
/* rgb */ color: rgb(125, 27, 123);
/* oklch */ color: oklch(42.6% 0.170 329.0);
Tailwind
colors: {
  custom: {
    50: '#a664a1',
    500: '#7d1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b7b;
$custom-light: #a664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b7b",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 301.224,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42618,
    "c": 0.17037,
    "h": 329
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#7D1B7B
secondary
#43B145
accent
#E74440
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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