#7D2371#7D2371

#7D2371 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.7% C 0.153 H 333.8°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7D2371
RGBrgb(125, 35, 113)
HSLhsl(308, 56%, 31%)
HSVhsv(308, 72%, 49%)
CMYKcmyk(0%, 72%, 9.6%, 51%)
CIE-LABlab(31.24, 47.47, -24.72)
CIE-LCHlch(31.24, 53.52, 332.49°)
OKLaboklab(42.74% 0.1375 -0.0676)
OKLCHoklch(42.74% 0.153 333.8)
XYZxyz(12.0392, 6.7553, 16.2894)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2371 #237D2F
analogous
#5C237D #7D2371 #7D2344
triadic
#7D2371 #717D23 #23717D
tetradic
#7D2371 #7D5C23 #237D2F #23447D
square
#7D2371 #7D5C23 #237D2F #23447D
split-complementary
#7D2371 #447D23 #237D5C
monochromatic
#1D081B #4D1646 #7D2371 #AD309C #CD4DBC

Accessibility & contrast

On white

8.93
#7D2371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7D2371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2371
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2371#FFFFFF#000000##FFFFFF
##7D23711.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214173
Deuteranopia (green-blind)
#414E6F
Tritanopia (blue-blind)
#832B47
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d2371;
/* rgb */ color: rgb(125, 35, 113);
/* oklch */ color: oklch(42.7% 0.153 333.8);
Tailwind
colors: {
  custom: {
    50: '#a6679a',
    500: '#7d2371',
    950: '#000000',
  },
}
SCSS
$custom: #7d2371;
$custom-light: #a6679a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2371",
  "rgb": {
    "r": 125,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 308,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.15321,
    "h": 333.8
  },
  "luminance": 0.06754
}

Semantic roles & 50–950 ramp

primary
#7D2371
secondary
#4CAF5A
accent
#E05C48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2371

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

Preview Lab → · Contrast checker → · Palette generator →

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