#7D156F#7D156F

#7D156F is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.5% C 0.167 H 334.6°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7D156F
RGBrgb(125, 21, 111)
HSLhsl(308, 71%, 29%)
HSVhsv(308, 83%, 49%)
CMYKcmyk(0%, 83.2%, 11.2%, 51%)
CIE-LABlab(29.53, 51.75, -26.14)
CIE-LCHlch(29.53, 57.97, 333.20°)
OKLaboklab(41.47% 0.1509 -0.0716)
OKLCHoklch(41.47% 0.167 334.6)
XYZxyz(11.5950, 6.0451, 15.5920)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D156F #157D23
analogous
#57157D #7D156F #7D153B
triadic
#7D156F #6F7D15 #156F7D
tetradic
#7D156F #7D5715 #157D23 #153B7D
square
#7D156F #7D5715 #157D23 #153B7D
split-complementary
#7D156F #3B7D15 #157D57
monochromatic
#1A0417 #490C40 #7D156F #B11E9E #DC30C5

Accessibility & contrast

On white

9.51
#7D156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7D156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D156F
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D156F#FFFFFF#000000##FFFFFF
##7D156F1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C71
Deuteranopia (green-blind)
#3C4B6D
Tritanopia (blue-blind)
#832042
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7d156f;
/* rgb */ color: rgb(125, 21, 111);
/* oklch */ color: oklch(41.5% 0.167 334.6);
Tailwind
colors: {
  custom: {
    50: '#a66198',
    500: '#7d156f',
    950: '#000000',
  },
}
SCSS
$custom: #7d156f;
$custom-light: #a66198;
$custom-dark: #000000;
JSON
{
  "hex": "#7d156f",
  "rgb": {
    "r": 125,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 308.077,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41472,
    "c": 0.167,
    "h": 334.6
  },
  "luminance": 0.06044
}

Semantic roles & 50–950 ramp

primary
#7D156F
secondary
#3CB24C
accent
#EE523A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D156F

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

Preview Lab → · Contrast checker → · Palette generator →

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