#7E137F#7E137F

#7E137F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.5% C 0.181 H 327.8°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7E137F
RGBrgb(126, 19, 127)
HSLhsl(299, 74%, 29%)
HSVhsv(299, 85%, 50%)
CMYKcmyk(0.8%, 85%, 0%, 50.2%)
CIE-LABlab(30.48, 55.04, -34.76)
CIE-LCHlch(30.48, 65.10, 327.72°)
OKLaboklab(42.49% 0.1532 -0.0966)
OKLCHoklch(42.49% 0.181 327.8)
XYZxyz(12.6677, 6.4346, 20.6494)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E137F #147F13
analogous
#48137F #7E137F #7F134A
triadic
#7E137F #7F7E13 #137F7E
tetradic
#7E137F #7F4813 #147F13 #134A7F
square
#7E137F #7F4813 #147F13 #134A7F
split-complementary
#7E137F #4A7F13 #137F48
monochromatic
#1A041B #490B4A #7E137F #B31BB4 #DE2DE0

Accessibility & contrast

On white

9.18
#7E137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E137F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E137F#FFFFFF#000000##FFFFFF
##7E137F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#344C7D
Tritanopia (blue-blind)
#82284B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e137f;
/* rgb */ color: rgb(126, 19, 127);
/* oklch */ color: oklch(42.5% 0.181 327.8);
Tailwind
colors: {
  custom: {
    50: '#a761a4',
    500: '#7e137f',
    950: '#000000',
  },
}
SCSS
$custom: #7e137f;
$custom-light: #a761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e137f",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 299.444,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.42493,
    "c": 0.18109,
    "h": 327.8
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#7E137F
secondary
#3AB439
accent
#F13739
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E137F

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

Preview Lab → · Contrast checker → · Palette generator →

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