#7E157B#7E157B

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

Color values

HEX#7E157B
RGBrgb(126, 21, 123)
HSLhsl(302, 71%, 29%)
HSVhsv(302, 83%, 49%)
CMYKcmyk(0%, 83.3%, 2.4%, 50.6%)
CIE-LABlab(30.41, 53.88, -32.36)
CIE-LCHlch(30.41, 62.85, 329.01°)
OKLaboklab(42.36% 0.152 -0.0896)
OKLCHoklch(42.36% 0.176 329.5)
XYZxyz(12.4474, 6.4030, 19.3154)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E157B #157E18
analogous
#4D157E #7E157B #7E1547
triadic
#7E157B #7B7E15 #157B7E
tetradic
#7E157B #7E4D15 #157E18 #15477E
square
#7E157B #7E4D15 #157E18 #15477E
split-complementary
#7E157B #477E15 #157E4D
monochromatic
#1A041A #4A0C48 #7E157B #B21EAE #DD31D8

Accessibility & contrast

On white

9.21
#7E157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E157B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E157B#FFFFFF#000000##FFFFFF
##7E157B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#832749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e157b;
/* rgb */ color: rgb(126, 21, 123);
/* oklch */ color: oklch(42.4% 0.176 329.5);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e157b',
    950: '#000000',
  },
}
SCSS
$custom: #7e157b;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e157b",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 301.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4236,
    "c": 0.17644,
    "h": 329.5
  },
  "luminance": 0.06402
}

Semantic roles & 50–950 ramp

primary
#7E157B
secondary
#3CB33F
accent
#EE3F3A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E157B

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

Preview Lab → · Contrast checker → · Palette generator →

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