#7D2170#7D2170

#7D2170 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.155 H 334.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7D2170
RGBrgb(125, 33, 112)
HSLhsl(308, 58%, 31%)
HSVhsv(308, 74%, 49%)
CMYKcmyk(0%, 73.6%, 10.4%, 51%)
CIE-LABlab(30.92, 48.06, -24.59)
CIE-LCHlch(30.92, 53.99, 332.91°)
OKLaboklab(42.49% 0.1396 -0.0672)
OKLCHoklch(42.49% 0.155 334.3)
XYZxyz(11.9260, 6.6186, 15.9755)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2170 #217D2E
analogous
#5C217D #7D2170 #7D2142
triadic
#7D2170 #707D21 #21707D
tetradic
#7D2170 #7D5C21 #217D2E #21427D
square
#7D2170 #7D5C21 #217D2E #21427D
split-complementary
#7D2170 #427D21 #217D5C
monochromatic
#1C0719 #4D1445 #7D2170 #AD2E9B #CF49BC

Accessibility & contrast

On white

9.04
#7D2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7D2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2170
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2170#FFFFFF#000000##FFFFFF
##7D21701.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4072
Deuteranopia (green-blind)
#404E6E
Tritanopia (blue-blind)
#832946
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d2170;
/* rgb */ color: rgb(125, 33, 112);
/* oklch */ color: oklch(42.5% 0.155 334.3);
Tailwind
colors: {
  custom: {
    50: '#a66699',
    500: '#7d2170',
    950: '#000000',
  },
}
SCSS
$custom: #7d2170;
$custom-light: #a66699;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2170",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 308.478,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42493,
    "c": 0.15495,
    "h": 334.3
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

primary
#7D2170
secondary
#4AB058
accent
#E15C46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2170

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

Preview Lab → · Contrast checker → · Palette generator →

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