#7E157D#7E157D

#7E157D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.178 H 328.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7E157D
RGBrgb(126, 21, 125)
HSLhsl(301, 71%, 29%)
HSVhsv(301, 83%, 49%)
CMYKcmyk(0%, 83.3%, 0.8%, 50.6%)
CIE-LABlab(30.53, 54.21, -33.43)
CIE-LCHlch(30.53, 63.69, 328.34°)
OKLaboklab(42.49% 0.1519 -0.0927)
OKLCHoklch(42.49% 0.178 328.6)
XYZxyz(12.5739, 6.4536, 19.9815)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E157D #157E16
analogous
#4B157E #7E157D #7E1549
triadic
#7E157D #7D7E15 #157D7E
tetradic
#7E157D #7E4B15 #157E16 #15497E
square
#7E157D #7E4B15 #157E16 #15497E
split-complementary
#7E157D #497E15 #157E4B
monochromatic
#1A041A #4A0C49 #7E157D #B21EB1 #DD31DB

Accessibility & contrast

On white

9.17
#7E157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E157D
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E157D#FFFFFF#000000##FFFFFF
##7E157D1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#364C7B
Tritanopia (blue-blind)
#82284A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e157d;
/* rgb */ color: rgb(126, 21, 125);
/* oklch */ color: oklch(42.5% 0.178 328.6);
Tailwind
colors: {
  custom: {
    50: '#a762a3',
    500: '#7e157d',
    950: '#000000',
  },
}
SCSS
$custom: #7e157d;
$custom-light: #a762a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e157d",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 300.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42486,
    "c": 0.17796,
    "h": 328.6
  },
  "luminance": 0.06453
}

Semantic roles & 50–950 ramp

primary
#7E157D
secondary
#3CB33D
accent
#EE3B3A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E157D

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

Preview Lab → · Contrast checker → · Palette generator →

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