#7E137D#7E137D

#7E137D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.180 H 328.6°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7E137D
RGBrgb(126, 19, 125)
HSLhsl(301, 74%, 28%)
HSVhsv(301, 85%, 49%)
CMYKcmyk(0%, 84.9%, 0.8%, 50.6%)
CIE-LABlab(30.36, 54.71, -33.70)
CIE-LCHlch(30.36, 64.26, 328.36°)
OKLaboklab(42.37% 0.1533 -0.0935)
OKLCHoklch(42.37% 0.18 328.6)
XYZxyz(12.5386, 6.3830, 19.9697)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E137D #137E14
analogous
#49137E #7E137D #7E1347
triadic
#7E137D #7D7E13 #137D7E
tetradic
#7E137D #7E4913 #137E14 #13477E
square
#7E137D #7E4913 #137E14 #13477E
split-complementary
#7E137D #477E13 #137E49
monochromatic
#1B041A #490B48 #7E137D #B31BB2 #DF2CDE

Accessibility & contrast

On white

9.23
#7E137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E137D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E137D#FFFFFF#000000##FFFFFF
##7E137D1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#82274A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e137d;
/* rgb */ color: rgb(126, 19, 125);
/* oklch */ color: oklch(42.4% 0.180 328.6);
Tailwind
colors: {
  custom: {
    50: '#a761a3',
    500: '#7e137d',
    950: '#000000',
  },
}
SCSS
$custom: #7e137d;
$custom-light: #a761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e137d",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 300.561,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42365,
    "c": 0.17957,
    "h": 328.6
  },
  "luminance": 0.06382
}

Semantic roles & 50–950 ramp

primary
#7E137D
secondary
#39B43A
accent
#F03937
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E137D

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

Preview Lab → · Contrast checker → · Palette generator →

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