#7E137B#7E137B

#7E137B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.178 H 329.5°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7E137B
RGBrgb(126, 19, 123)
HSLhsl(302, 74%, 28%)
HSVhsv(302, 85%, 49%)
CMYKcmyk(0%, 84.9%, 2.4%, 50.6%)
CIE-LABlab(30.24, 54.38, -32.64)
CIE-LCHlch(30.24, 63.42, 329.03°)
OKLaboklab(42.24% 0.1534 -0.0904)
OKLCHoklch(42.24% 0.178 329.5)
XYZxyz(12.4121, 6.3324, 19.3036)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E137B #137E16
analogous
#4B137E #7E137B #7E1345
triadic
#7E137B #7B7E13 #137B7E
tetradic
#7E137B #7E4B13 #137E16 #13457E
square
#7E137B #7E4B13 #137E16 #13457E
split-complementary
#7E137B #457E13 #137E4B
monochromatic
#1B041A #490B47 #7E137B #B31BAF #DF2CDA

Accessibility & contrast

On white

9.27
#7E137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E137B
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E137B#FFFFFF#000000##FFFFFF
##7E137B1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#832548
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e137b;
/* rgb */ color: rgb(126, 19, 123);
/* oklch */ color: oklch(42.2% 0.178 329.5);
Tailwind
colors: {
  custom: {
    50: '#a761a1',
    500: '#7e137b',
    950: '#000000',
  },
}
SCSS
$custom: #7e137b;
$custom-light: #a761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e137b",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 301.682,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.42238,
    "c": 0.17806,
    "h": 329.5
  },
  "luminance": 0.06331
}

Semantic roles & 50–950 ramp

primary
#7E137B
secondary
#39B43D
accent
#F03D37
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E137B

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

Preview Lab → · Contrast checker → · Palette generator →

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