#7C2170#7C2170

#7C2170 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.154 H 333.8°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7C2170
RGBrgb(124, 33, 112)
HSLhsl(308, 58%, 31%)
HSVhsv(308, 73%, 49%)
CMYKcmyk(0%, 73.4%, 9.7%, 51.4%)
CIE-LABlab(30.74, 47.81, -24.88)
CIE-LCHlch(30.74, 53.90, 332.51°)
OKLaboklab(42.33% 0.1385 -0.0681)
OKLCHoklch(42.33% 0.154 333.8)
XYZxyz(11.7808, 6.5436, 15.9687)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2170 #217C2D
analogous
#5A217C #7C2170 #7C2142
triadic
#7C2170 #707C21 #21707C
tetradic
#7C2170 #7C5A21 #217C2D #21427C
square
#7C2170 #7C5A21 #217C2D #21427C
split-complementary
#7C2170 #427C21 #217C5A
monochromatic
#1B0719 #4C1444 #7C2170 #AC2E9C #CF49BD

Accessibility & contrast

On white

9.10
#7C2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7C2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2170
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2170#FFFFFF#000000##FFFFFF
##7C21701.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4072
Deuteranopia (green-blind)
#3F4D6E
Tritanopia (blue-blind)
#822946
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c2170;
/* rgb */ color: rgb(124, 33, 112);
/* oklch */ color: oklch(42.3% 0.154 333.8);
Tailwind
colors: {
  custom: {
    50: '#a56699',
    500: '#7c2170',
    950: '#000000',
  },
}
SCSS
$custom: #7c2170;
$custom-light: #a56699;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2170",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 307.912,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.15434,
    "h": 333.8
  },
  "luminance": 0.06543
}

Semantic roles & 50–950 ramp

primary
#7C2170
secondary
#4AAF57
accent
#E15B47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7C2170

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

Preview Lab → · Contrast checker → · Palette generator →

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