#7E137E#7E137E

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

Color values

HEX#7E137E
RGBrgb(126, 19, 126)
HSLhsl(300, 74%, 28%)
HSVhsv(300, 85%, 49%)
CMYKcmyk(0%, 84.9%, 0%, 50.6%)
CIE-LABlab(30.42, 54.87, -34.23)
CIE-LCHlch(30.42, 64.68, 328.04°)
OKLaboklab(42.43% 0.1533 -0.095)
OKLCHoklch(42.43% 0.18 328.2)
XYZxyz(12.6028, 6.4087, 20.3078)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E137E #137E13
analogous
#48137E #7E137E #7E1348
triadic
#7E137E #7E7E13 #137E7E
tetradic
#7E137E #7E4813 #137E13 #13487E
square
#7E137E #7E4813 #137E13 #13487E
split-complementary
#7E137E #487E13 #137E48
monochromatic
#1B041B #490B49 #7E137E #B31BB3 #DF2CDF

Accessibility & contrast

On white

9.20
#7E137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E137E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E137E#FFFFFF#000000##FFFFFF
##7E137E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#82274A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e137e;
/* rgb */ color: rgb(126, 19, 126);
/* oklch */ color: oklch(42.4% 0.180 328.2);
Tailwind
colors: {
  custom: {
    50: '#a761a4',
    500: '#7e137e',
    950: '#000000',
  },
}
SCSS
$custom: #7e137e;
$custom-light: #a761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e137e",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.18033,
    "h": 328.2
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#7E137E
secondary
#39B439
accent
#F03737
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E137E

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

Preview Lab → · Contrast checker → · Palette generator →

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