#7E156F#7E156F

#7E156F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.168 H 335.0°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#7E156F
RGBrgb(126, 21, 111)
HSLhsl(309, 71%, 29%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 83.3%, 11.9%, 50.6%)
CIE-LABlab(29.71, 51.97, -25.83)
CIE-LCHlch(29.71, 58.04, 333.57°)
OKLaboklab(41.64% 0.1519 -0.0707)
OKLCHoklch(41.64% 0.168 335)
XYZxyz(11.7418, 6.1207, 15.5989)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E156F #157E24
analogous
#59157E #7E156F #7E153B
triadic
#7E156F #6F7E15 #156F7E
tetradic
#7E156F #7E5915 #157E24 #153B7E
square
#7E156F #7E5915 #157E24 #153B7E
split-complementary
#7E156F #3B7E15 #157E59
monochromatic
#1A0417 #4A0C41 #7E156F #B21E9D #DD31C4

Accessibility & contrast

On white

9.44
#7E156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E156F
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E156F#FFFFFF#000000##FFFFFF
##7E156F1.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#852042
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e156f;
/* rgb */ color: rgb(126, 21, 111);
/* oklch */ color: oklch(41.6% 0.168 335.0);
Tailwind
colors: {
  custom: {
    50: '#a76198',
    500: '#7e156f',
    950: '#000000',
  },
}
SCSS
$custom: #7e156f;
$custom-light: #a76198;
$custom-dark: #000000;
JSON
{
  "hex": "#7e156f",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 308.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41643,
    "c": 0.16754,
    "h": 335
  },
  "luminance": 0.0612
}

Semantic roles & 50–950 ramp

primary
#7E156F
secondary
#3CB34D
accent
#EE533A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E156F

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

Preview Lab → · Contrast checker → · Palette generator →

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