#7E146D#7E146D

#7E146D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.167 H 336.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7E146D
RGBrgb(126, 20, 109)
HSLhsl(310, 73%, 29%)
HSVhsv(310, 84%, 49%)
CMYKcmyk(0%, 84.1%, 13.5%, 50.6%)
CIE-LABlab(29.52, 51.93, -24.86)
CIE-LCHlch(29.52, 57.57, 334.42°)
OKLaboklab(41.47% 0.1525 -0.0679)
OKLCHoklch(41.47% 0.167 336)
XYZxyz(11.6149, 6.0412, 15.0194)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E146D #147E25
analogous
#5A147E #7E146D #7E1438
triadic
#7E146D #6D7E14 #146D7E
tetradic
#7E146D #7E5A14 #147E25 #14387E
square
#7E146D #7E5A14 #147E25 #14387E
split-complementary
#7E146D #387E14 #147E5A
monochromatic
#1A0417 #490C3F #7E146D #B31C9B #DE2EC2

Accessibility & contrast

On white

9.51
#7E146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E146D
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E146D#FFFFFF#000000##FFFFFF
##7E146D1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C6F
Deuteranopia (green-blind)
#3E4B6B
Tritanopia (blue-blind)
#851E41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e146d;
/* rgb */ color: rgb(126, 20, 109);
/* oklch */ color: oklch(41.5% 0.167 336.0);
Tailwind
colors: {
  custom: {
    50: '#a76197',
    500: '#7e146d',
    950: '#000000',
  },
}
SCSS
$custom: #7e146d;
$custom-light: #a76197;
$custom-dark: #000000;
JSON
{
  "hex": "#7e146d",
  "rgb": {
    "r": 126,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 309.623,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41465,
    "c": 0.16698,
    "h": 336
  },
  "luminance": 0.0604
}

Semantic roles & 50–950 ramp

primary
#7E146D
secondary
#3AB34E
accent
#EF5638
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E146D

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

Preview Lab → · Contrast checker → · Palette generator →

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