#7E156D#7E156D

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

Color values

HEX#7E156D
RGBrgb(126, 21, 109)
HSLhsl(310, 71%, 29%)
HSVhsv(310, 83%, 49%)
CMYKcmyk(0%, 83.3%, 13.5%, 50.6%)
CIE-LABlab(29.61, 51.67, -24.72)
CIE-LCHlch(29.61, 57.28, 334.43°)
OKLaboklab(41.53% 0.1518 -0.0675)
OKLCHoklch(41.53% 0.166 336)
XYZxyz(11.6329, 6.0772, 15.0254)
Luminance0.0608 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E156D #157E26
analogous
#5B157E #7E156D #7E1539
triadic
#7E156D #6D7E15 #156D7E
tetradic
#7E156D #7E5B15 #157E26 #15397E
square
#7E156D #7E5B15 #157E26 #15397E
split-complementary
#7E156D #397E15 #157E5B
monochromatic
#1A0417 #4A0C40 #7E156D #B21E9A #DD31C1

Accessibility & contrast

On white

9.48
#7E156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E156D
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E156D#FFFFFF#000000##FFFFFF
##7E156D1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e156d;
/* rgb */ color: rgb(126, 21, 109);
/* oklch */ color: oklch(41.5% 0.166 336.0);
Tailwind
colors: {
  custom: {
    50: '#a76197',
    500: '#7e156d',
    950: '#000000',
  },
}
SCSS
$custom: #7e156d;
$custom-light: #a76197;
$custom-dark: #000000;
JSON
{
  "hex": "#7e156d",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 309.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4153,
    "c": 0.1661,
    "h": 336
  },
  "luminance": 0.06076
}

Semantic roles & 50–950 ramp

primary
#7E156D
secondary
#3CB34F
accent
#EE573A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E156D

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

Preview Lab → · Contrast checker → · Palette generator →

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