#7E157F#7E157F

#7E157F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.179 H 327.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#7E157F
RGBrgb(126, 21, 127)
HSLhsl(299, 72%, 29%)
HSVhsv(299, 83%, 50%)
CMYKcmyk(0.8%, 83.5%, 0%, 50.2%)
CIE-LABlab(30.65, 54.55, -34.49)
CIE-LCHlch(30.65, 64.54, 327.69°)
OKLaboklab(42.61% 0.1518 -0.0958)
OKLCHoklch(42.61% 0.18 327.7)
XYZxyz(12.7029, 6.5052, 20.6611)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E157F #167F15
analogous
#49157F #7E157F #7F154B
triadic
#7E157F #7F7E15 #157F7E
tetradic
#7E157F #7F4915 #167F15 #154B7F
square
#7E157F #7F4915 #167F15 #154B7F
split-complementary
#7E157F #4B7F15 #157F49
monochromatic
#1A041A #4A0C4A #7E157F #B21EB4 #DB31DD

Accessibility & contrast

On white

9.13
#7E157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E157F
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E157F#FFFFFF#000000##FFFFFF
##7E157F1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#344D7D
Tritanopia (blue-blind)
#82294B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e157f;
/* rgb */ color: rgb(126, 21, 127);
/* oklch */ color: oklch(42.6% 0.179 327.7);
Tailwind
colors: {
  custom: {
    50: '#a762a4',
    500: '#7e157f',
    950: '#000000',
  },
}
SCSS
$custom: #7e157f;
$custom-light: #a762a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e157f",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 299.434,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.1795,
    "h": 327.7
  },
  "luminance": 0.06504
}

Semantic roles & 50–950 ramp

primary
#7E157F
secondary
#3DB43C
accent
#EE393B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E157F

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

Preview Lab → · Contrast checker → · Palette generator →

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