#7E1170#7E1170

#7E1170 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.172 H 334.5°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7E1170
RGBrgb(126, 17, 112)
HSLhsl(308, 76%, 28%)
HSVhsv(308, 87%, 49%)
CMYKcmyk(0%, 86.5%, 11.1%, 50.6%)
CIE-LABlab(29.43, 53.11, -26.92)
CIE-LCHlch(29.43, 59.54, 333.12°)
OKLaboklab(41.46% 0.1548 -0.0738)
OKLCHoklch(41.46% 0.172 334.5)
XYZxyz(11.7294, 6.0075, 15.8679)
Luminance0.0601 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1170 #117E1F
analogous
#55117E #7E1170 #7E113A
triadic
#7E1170 #707E11 #11707E
tetradic
#7E1170 #7E5511 #117E1F #113A7E
square
#7E1170 #7E5511 #117E1F #113A7E
split-complementary
#7E1170 #3A7E11 #117E55
monochromatic
#1B0418 #480A40 #7E1170 #B418A0 #E227CA

Accessibility & contrast

On white

9.54
#7E1170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7E1170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1170
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1170#FFFFFF#000000##FFFFFF
##7E11701.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3B72
Deuteranopia (green-blind)
#3C4B6E
Tritanopia (blue-blind)
#841E42
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1170;
/* rgb */ color: rgb(126, 17, 112);
/* oklch */ color: oklch(41.5% 0.172 334.5);
Tailwind
colors: {
  custom: {
    50: '#a76099',
    500: '#7e1170',
    950: '#000000',
  },
}
SCSS
$custom: #7e1170;
$custom-light: #a76099;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1170",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 307.706,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41458,
    "c": 0.17153,
    "h": 334.5
  },
  "luminance": 0.06006
}

Semantic roles & 50–950 ramp

primary
#7E1170
secondary
#37B447
accent
#F34D35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #7E1170

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

Preview Lab → · Contrast checker → · Palette generator →

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