#7E1570#7E1570

#7E1570 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.168 H 334.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7E1570
RGBrgb(126, 21, 112)
HSLhsl(308, 71%, 29%)
HSVhsv(308, 83%, 49%)
CMYKcmyk(0%, 83.3%, 11.1%, 50.6%)
CIE-LABlab(29.77, 52.13, -26.38)
CIE-LCHlch(29.77, 58.42, 333.15°)
OKLaboklab(41.7% 0.1519 -0.0723)
OKLCHoklch(41.7% 0.168 334.5)
XYZxyz(11.7971, 6.1429, 15.8905)
Luminance0.0614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1570 #157E23
analogous
#58157E #7E1570 #7E153C
triadic
#7E1570 #707E15 #15707E
tetradic
#7E1570 #7E5815 #157E23 #153C7E
square
#7E1570 #7E5815 #157E23 #153C7E
split-complementary
#7E1570 #3C7E15 #157E58
monochromatic
#1A0417 #4A0C41 #7E1570 #B21E9F #DD31C6

Accessibility & contrast

On white

9.42
#7E1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1570
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1570#FFFFFF#000000##FFFFFF
##7E15701.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C72
Deuteranopia (green-blind)
#3D4B6E
Tritanopia (blue-blind)
#842043
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1570;
/* rgb */ color: rgb(126, 21, 112);
/* oklch */ color: oklch(41.7% 0.168 334.5);
Tailwind
colors: {
  custom: {
    50: '#a76199',
    500: '#7e1570',
    950: '#000000',
  },
}
SCSS
$custom: #7e1570;
$custom-light: #a76199;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1570",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 308,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.417,
    "c": 0.16826,
    "h": 334.5
  },
  "luminance": 0.06142
}

Semantic roles & 50–950 ramp

primary
#7E1570
secondary
#3CB34C
accent
#EE523A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1570

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

Preview Lab → · Contrast checker → · Palette generator →

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