#7E2170#7E2170

#7E2170 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.156 H 334.7°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7E2170
RGBrgb(126, 33, 112)
HSLhsl(309, 58%, 31%)
HSVhsv(309, 74%, 49%)
CMYKcmyk(0%, 73.8%, 11.1%, 50.6%)
CIE-LABlab(31.10, 48.32, -24.29)
CIE-LCHlch(31.10, 54.08, 333.31°)
OKLaboklab(42.66% 0.1407 -0.0664)
OKLCHoklch(42.66% 0.156 334.7)
XYZxyz(12.0728, 6.6942, 15.9824)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2170 #217E2F
analogous
#5D217E #7E2170 #7E2141
triadic
#7E2170 #707E21 #21707E
tetradic
#7E2170 #7E5D21 #217E2F #21417E
square
#7E2170 #7E5D21 #217E2F #21417E
split-complementary
#7E2170 #417E21 #217E5D
monochromatic
#1D081A #4E1445 #7E2170 #AE2E9B #D04ABB

Accessibility & contrast

On white

8.98
#7E2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2170
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2170#FFFFFF#000000##FFFFFF
##7E21701.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204072
Deuteranopia (green-blind)
#414E6E
Tritanopia (blue-blind)
#842946
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e2170;
/* rgb */ color: rgb(126, 33, 112);
/* oklch */ color: oklch(42.7% 0.156 334.7);
Tailwind
colors: {
  custom: {
    50: '#a76699',
    500: '#7e2170',
    950: '#000000',
  },
}
SCSS
$custom: #7e2170;
$custom-light: #a76699;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2170",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 309.032,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42656,
    "c": 0.15556,
    "h": 334.7
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#7E2170
secondary
#4AB15A
accent
#E25E46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E2170

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

Preview Lab → · Contrast checker → · Palette generator →

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