#7D1271#7D1271

#7D1271 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.171 H 333.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7D1271
RGBrgb(125, 18, 113)
HSLhsl(307, 75%, 28%)
HSVhsv(307, 86%, 49%)
CMYKcmyk(0%, 85.6%, 9.6%, 51%)
CIE-LABlab(29.38, 52.81, -27.66)
CIE-LCHlch(29.38, 59.62, 332.36°)
OKLaboklab(41.4% 0.1532 -0.076)
OKLCHoklch(41.4% 0.171 333.6)
XYZxyz(11.6545, 5.9859, 16.1612)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1271 #127D1E
analogous
#53127D #7D1271 #7D123B
triadic
#7D1271 #717D12 #12717D
tetradic
#7D1271 #7D5312 #127D1E #123B7D
square
#7D1271 #7D5312 #127D1E #123B7D
split-complementary
#7D1271 #3B7D12 #127D53
monochromatic
#1B0418 #480A41 #7D1271 #B21AA1 #E029CC

Accessibility & contrast

On white

9.56
#7D1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1271
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1271#FFFFFF#000000##FFFFFF
##7D12711.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#831F43
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d1271;
/* rgb */ color: rgb(125, 18, 113);
/* oklch */ color: oklch(41.4% 0.171 333.6);
Tailwind
colors: {
  custom: {
    50: '#a6609a',
    500: '#7d1271',
    950: '#000000',
  },
}
SCSS
$custom: #7d1271;
$custom-light: #a6609a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1271",
  "rgb": {
    "r": 125,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 306.729,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41402,
    "c": 0.17096,
    "h": 333.6
  },
  "luminance": 0.05985
}

Semantic roles & 50–950 ramp

primary
#7D1271
secondary
#38B346
accent
#F14B36
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7D1271

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

Preview Lab → · Contrast checker → · Palette generator →

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