#7B156D#7B156D

#7B156D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.164 H 334.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#7B156D
RGBrgb(123, 21, 109)
HSLhsl(308, 71%, 28%)
HSVhsv(308, 83%, 48%)
CMYKcmyk(0%, 82.9%, 11.4%, 51.8%)
CIE-LABlab(29.04, 50.98, -25.66)
CIE-LCHlch(29.04, 57.07, 333.29°)
OKLaboklab(41.02% 0.1487 -0.0703)
OKLCHoklch(41.02% 0.164 334.7)
XYZxyz(11.1970, 5.8524, 15.0050)
Luminance0.0585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B156D #157B23
analogous
#56157B #7B156D #7B153A
triadic
#7B156D #6D7B15 #156D7B
tetradic
#7B156D #7B5615 #157B23 #153A7B
square
#7B156D #7B5615 #157B23 #153A7B
split-complementary
#7B156D #3A7B15 #157B56
monochromatic
#1A0417 #470C3F #7B156D #AF1E9B #DB2FC4

Accessibility & contrast

On white

9.68
#7B156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7B156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B156D
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B156D#FFFFFF#000000##FFFFFF
##7B156D1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133B6F
Deuteranopia (green-blind)
#3B4A6B
Tritanopia (blue-blind)
#811F41
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b156d;
/* rgb */ color: rgb(123, 21, 109);
/* oklch */ color: oklch(41.0% 0.164 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56197',
    500: '#7b156d',
    950: '#000000',
  },
}
SCSS
$custom: #7b156d;
$custom-light: #a56197;
$custom-dark: #000000;
JSON
{
  "hex": "#7b156d",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 308.235,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41017,
    "c": 0.16448,
    "h": 334.7
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#7B156D
secondary
#3BB04B
accent
#EE533A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7B156D

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

Preview Lab → · Contrast checker → · Palette generator →

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