#7D156D#7D156D

#7D156D is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.166 H 335.6°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#7D156D
RGBrgb(125, 21, 109)
HSLhsl(309, 71%, 29%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 83.2%, 12.8%, 51%)
CIE-LABlab(29.42, 51.44, -25.03)
CIE-LCHlch(29.42, 57.21, 334.05°)
OKLaboklab(41.36% 0.1508 -0.0684)
OKLCHoklch(41.36% 0.166 335.6)
XYZxyz(11.4861, 6.0015, 15.0185)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D156D #157D25
analogous
#59157D #7D156D #7D1539
triadic
#7D156D #6D7D15 #156D7D
tetradic
#7D156D #7D5915 #157D25 #15397D
square
#7D156D #7D5915 #157D25 #15397D
split-complementary
#7D156D #397D15 #157D59
monochromatic
#1A0417 #490C3F #7D156D #B11E9B #DC30C2

Accessibility & contrast

On white

9.55
#7D156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7D156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D156D
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D156D#FFFFFF#000000##FFFFFF
##7D156D1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C6F
Deuteranopia (green-blind)
#3D4B6B
Tritanopia (blue-blind)
#841F41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7d156d;
/* rgb */ color: rgb(125, 21, 109);
/* oklch */ color: oklch(41.4% 0.166 335.6);
Tailwind
colors: {
  custom: {
    50: '#a66197',
    500: '#7d156d',
    950: '#000000',
  },
}
SCSS
$custom: #7d156d;
$custom-light: #a66197;
$custom-dark: #000000;
JSON
{
  "hex": "#7d156d",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 309.231,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41359,
    "c": 0.16556,
    "h": 335.6
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#7D156D
secondary
#3CB24E
accent
#EE563A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D156D

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

Preview Lab → · Contrast checker → · Palette generator →

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