#7E157A#7E157A

#7E157A is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.176 H 329.9°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7E157A
RGBrgb(126, 21, 122)
HSLhsl(302, 71%, 29%)
HSVhsv(302, 83%, 49%)
CMYKcmyk(0%, 83.3%, 3.2%, 50.6%)
CIE-LABlab(30.35, 53.72, -31.83)
CIE-LCHlch(30.35, 62.44, 329.35°)
OKLaboklab(42.3% 0.152 -0.0881)
OKLCHoklch(42.3% 0.176 329.9)
XYZxyz(12.3851, 6.3781, 18.9874)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E157A #157E19
analogous
#4E157E #7E157A #7E1546
triadic
#7E157A #7A7E15 #157A7E
tetradic
#7E157A #7E4E15 #157E19 #15467E
square
#7E157A #7E4E15 #157E19 #15467E
split-complementary
#7E157A #467E15 #157E4E
monochromatic
#1A0419 #4A0C47 #7E157A #B21EAD #DD31D6

Accessibility & contrast

On white

9.23
#7E157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E157A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E157A#FFFFFF#000000##FFFFFF
##7E157A1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7D
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#832648
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e157a;
/* rgb */ color: rgb(126, 21, 122);
/* oklch */ color: oklch(42.3% 0.176 329.9);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e157a',
    950: '#000000',
  },
}
SCSS
$custom: #7e157a;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e157a",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 302.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42298,
    "c": 0.17567,
    "h": 329.9
  },
  "luminance": 0.06377
}

Semantic roles & 50–950 ramp

primary
#7E157A
secondary
#3CB340
accent
#EE413A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E157A

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

Preview Lab → · Contrast checker → · Palette generator →

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