#7D157E#7D157E

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

Color values

HEX#7D157E
RGBrgb(125, 21, 126)
HSLhsl(299, 71%, 29%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(0.8%, 83.3%, 0%, 50.6%)
CIE-LABlab(30.41, 54.17, -34.26)
CIE-LCHlch(30.41, 64.10, 327.69°)
OKLaboklab(42.39% 0.1507 -0.0952)
OKLCHoklch(42.39% 0.178 327.7)
XYZxyz(12.4913, 6.4036, 20.3127)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D157E #167E15
analogous
#49157E #7D157E #7E154B
triadic
#7D157E #7E7D15 #157E7D
tetradic
#7D157E #7E4915 #167E15 #154B7E
square
#7D157E #7E4915 #167E15 #154B7E
split-complementary
#7D157E #4B7E15 #157E49
monochromatic
#1A041A #490C4A #7D157E #B11EB2 #DB31DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D157E#FFFFFF#000000##FFFFFF
##7D157E1.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)
#003F81
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#81294B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d157e;
/* rgb */ color: rgb(125, 21, 126);
/* oklch */ color: oklch(42.4% 0.178 327.7);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7d157e',
    950: '#000000',
  },
}
SCSS
$custom: #7d157e;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d157e",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 299.429,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42386,
    "c": 0.17827,
    "h": 327.7
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#7D157E
secondary
#3DB33C
accent
#EE3A3B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D157E

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

Preview Lab → · Contrast checker → · Palette generator →

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