#7D1972#7D1972

#7D1972 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.165 H 333.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#7D1972
RGBrgb(125, 25, 114)
HSLhsl(307, 67%, 29%)
HSVhsv(307, 80%, 49%)
CMYKcmyk(0%, 80%, 8.8%, 51%)
CIE-LABlab(30.09, 51.08, -27.18)
CIE-LCHlch(30.09, 57.86, 331.99°)
OKLaboklab(41.93% 0.1476 -0.0746)
OKLCHoklch(41.93% 0.165 333.2)
XYZxyz(11.8424, 6.2712, 16.5031)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1972 #197D24
analogous
#56197D #7D1972 #7D1940
triadic
#7D1972 #727D19 #19727D
tetradic
#7D1972 #7D5619 #197D24 #19407D
square
#7D1972 #7D5619 #197D24 #19407D
split-complementary
#7D1972 #407D19 #197D56
monochromatic
#1A0517 #4A0F43 #7D1972 #B023A1 #D739C6

Accessibility & contrast

On white

9.32
#7D1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7D1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1972
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1972#FFFFFF#000000##FFFFFF
##7D19721.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#832445
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1972;
/* rgb */ color: rgb(125, 25, 114);
/* oklch */ color: oklch(41.9% 0.165 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6639b',
    500: '#7d1972',
    950: '#000000',
  },
}
SCSS
$custom: #7d1972;
$custom-light: #a6639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1972",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 306.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41928,
    "c": 0.16543,
    "h": 333.2
  },
  "luminance": 0.0627
}

Semantic roles & 50–950 ramp

primary
#7D1972
secondary
#40B14D
accent
#EA513E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1972

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

Preview Lab → · Contrast checker → · Palette generator →

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