#7D1272#7D1272

#7D1272 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.172 H 333.1°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7D1272
RGBrgb(125, 18, 114)
HSLhsl(306, 75%, 28%)
HSVhsv(306, 86%, 49%)
CMYKcmyk(0%, 85.6%, 8.8%, 51%)
CIE-LABlab(29.43, 52.97, -28.21)
CIE-LCHlch(29.43, 60.01, 331.96°)
OKLaboklab(41.46% 0.1532 -0.0776)
OKLCHoklch(41.46% 0.172 333.1)
XYZxyz(11.7111, 6.0085, 16.4593)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1272 #127D1D
analogous
#52127D #7D1272 #7D123C
triadic
#7D1272 #727D12 #12727D
tetradic
#7D1272 #7D5212 #127D1D #123C7D
square
#7D1272 #7D5212 #127D1D #123C7D
split-complementary
#7D1272 #3C7D12 #127D52
monochromatic
#1B0418 #480A41 #7D1272 #B21AA3 #E029CD

Accessibility & contrast

On white

9.54
#7D1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7D1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1272
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1272#FFFFFF#000000##FFFFFF
##7D12721.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3C74
Deuteranopia (green-blind)
#3A4B70
Tritanopia (blue-blind)
#832043
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1272;
/* rgb */ color: rgb(125, 18, 114);
/* oklch */ color: oklch(41.5% 0.172 333.1);
Tailwind
colors: {
  custom: {
    50: '#a6609b',
    500: '#7d1272',
    950: '#000000',
  },
}
SCSS
$custom: #7d1272;
$custom-light: #a6609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1272",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 306.168,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41462,
    "c": 0.17169,
    "h": 333.1
  },
  "luminance": 0.06007
}

Semantic roles & 50–950 ramp

primary
#7D1272
secondary
#38B345
accent
#F14A36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1272

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

Preview Lab → · Contrast checker → · Palette generator →

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