#7E157C#7E157C

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

Color values

HEX#7E157C
RGBrgb(126, 21, 124)
HSLhsl(301, 71%, 29%)
HSVhsv(301, 83%, 49%)
CMYKcmyk(0%, 83.3%, 1.6%, 50.6%)
CIE-LABlab(30.47, 54.05, -32.90)
CIE-LCHlch(30.47, 63.27, 328.67°)
OKLaboklab(42.42% 0.1519 -0.0912)
OKLCHoklch(42.42% 0.177 329)
XYZxyz(12.5103, 6.4282, 19.6467)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E157C #157E17
analogous
#4C157E #7E157C #7E1548
triadic
#7E157C #7C7E15 #157C7E
tetradic
#7E157C #7E4C15 #157E17 #15487E
square
#7E157C #7E4C15 #157E17 #15487E
split-complementary
#7E157C #487E15 #157E4C
monochromatic
#1A041A #4A0C48 #7E157C #B21EB0 #DD31D9

Accessibility & contrast

On white

9.19
#7E157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E157C
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E157C#FFFFFF#000000##FFFFFF
##7E157C1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#364C7A
Tritanopia (blue-blind)
#832749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e157c;
/* rgb */ color: rgb(126, 21, 124);
/* oklch */ color: oklch(42.4% 0.177 329.0);
Tailwind
colors: {
  custom: {
    50: '#a762a2',
    500: '#7e157c',
    950: '#000000',
  },
}
SCSS
$custom: #7e157c;
$custom-light: #a762a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e157c",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 301.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42423,
    "c": 0.17719,
    "h": 329
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

primary
#7E157C
secondary
#3CB33E
accent
#EE3D3A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E157C

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

Preview Lab → · Contrast checker → · Palette generator →

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