#7E1670#7E1670

#7E1670 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.167 H 334.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7E1670
RGBrgb(126, 22, 112)
HSLhsl(308, 70%, 29%)
HSVhsv(308, 83%, 49%)
CMYKcmyk(0%, 82.5%, 11.1%, 50.6%)
CIE-LABlab(29.86, 51.86, -26.24)
CIE-LCHlch(29.86, 58.12, 333.16°)
OKLaboklab(41.77% 0.1511 -0.0719)
OKLCHoklch(41.77% 0.167 334.6)
XYZxyz(11.8159, 6.1804, 15.8967)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1670 #167E24
analogous
#58167E #7E1670 #7E163C
triadic
#7E1670 #707E16 #16707E
tetradic
#7E1670 #7E5816 #167E24 #163C7E
square
#7E1670 #7E5816 #167E24 #163C7E
split-complementary
#7E1670 #3C7E16 #167E58
monochromatic
#1A0517 #4A0D42 #7E1670 #B21F9E #DB33C5

Accessibility & contrast

On white

9.39
#7E1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1670
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1670#FFFFFF#000000##FFFFFF
##7E16701.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143D72
Deuteranopia (green-blind)
#3D4C6E
Tritanopia (blue-blind)
#842143
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1670;
/* rgb */ color: rgb(126, 22, 112);
/* oklch */ color: oklch(41.8% 0.167 334.6);
Tailwind
colors: {
  custom: {
    50: '#a76299',
    500: '#7e1670',
    950: '#000000',
  },
}
SCSS
$custom: #7e1670;
$custom-light: #a76299;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1670",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 308.077,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41767,
    "c": 0.16736,
    "h": 334.6
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#7E1670
secondary
#3DB34D
accent
#ED533B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1670

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

Preview Lab → · Contrast checker → · Palette generator →

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