#7E156E#7E156E

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

Color values

HEX#7E156E
RGBrgb(126, 21, 110)
HSLhsl(309, 71%, 29%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 83.3%, 12.7%, 50.6%)
CIE-LABlab(29.66, 51.82, -25.28)
CIE-LCHlch(29.66, 57.66, 334.00°)
OKLaboklab(41.59% 0.1518 -0.0691)
OKLCHoklch(41.59% 0.167 335.5)
XYZxyz(11.6870, 6.0988, 15.3105)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E156E #157E25
analogous
#5A157E #7E156E #7E153A
triadic
#7E156E #6E7E15 #156E7E
tetradic
#7E156E #7E5A15 #157E25 #153A7E
square
#7E156E #7E5A15 #157E25 #153A7E
split-complementary
#7E156E #3A7E15 #157E5A
monochromatic
#1A0417 #4A0C40 #7E156E #B21E9C #DD31C2

Accessibility & contrast

On white

9.46
#7E156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E156E
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E156E#FFFFFF#000000##FFFFFF
##7E156E1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153C70
Deuteranopia (green-blind)
#3E4B6C
Tritanopia (blue-blind)
#851F41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e156e;
/* rgb */ color: rgb(126, 21, 110);
/* oklch */ color: oklch(41.6% 0.167 335.5);
Tailwind
colors: {
  custom: {
    50: '#a76198',
    500: '#7e156e',
    950: '#000000',
  },
}
SCSS
$custom: #7e156e;
$custom-light: #a76198;
$custom-dark: #000000;
JSON
{
  "hex": "#7e156e",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 309.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41586,
    "c": 0.16681,
    "h": 335.5
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#7E156E
secondary
#3CB34E
accent
#EE553A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E156E

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

Preview Lab → · Contrast checker → · Palette generator →

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