#7B156B#7B156B

#7B156B is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.163 H 335.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#7B156B
RGBrgb(123, 21, 107)
HSLhsl(309, 71%, 28%)
HSVhsv(309, 83%, 48%)
CMYKcmyk(0%, 82.9%, 13%, 51.8%)
CIE-LABlab(28.93, 50.68, -24.54)
CIE-LCHlch(28.93, 56.30, 334.16°)
OKLaboklab(40.9% 0.1486 -0.0671)
OKLCHoklch(40.9% 0.163 335.7)
XYZxyz(11.0906, 5.8099, 14.4444)
Luminance0.0581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B156B #157B25
analogous
#58157B #7B156B #7B1538
triadic
#7B156B #6B7B15 #156B7B
tetradic
#7B156B #7B5815 #157B25 #15387B
square
#7B156B #7B5815 #157B25 #15387B
split-complementary
#7B156B #387B15 #157B58
monochromatic
#1A0417 #470C3E #7B156B #AF1E98 #DB2FC0

Accessibility & contrast

On white

9.71
#7B156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7B156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B156B
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B156B#FFFFFF#000000##FFFFFF
##7B156B1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163B6D
Deuteranopia (green-blind)
#3C4969
Tritanopia (blue-blind)
#821E40
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b156b;
/* rgb */ color: rgb(123, 21, 107);
/* oklch */ color: oklch(40.9% 0.163 335.7);
Tailwind
colors: {
  custom: {
    50: '#a56195',
    500: '#7b156b',
    950: '#000000',
  },
}
SCSS
$custom: #7b156b;
$custom-light: #a56195;
$custom-dark: #000000;
JSON
{
  "hex": "#7b156b",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 309.412,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40903,
    "c": 0.16303,
    "h": 335.7
  },
  "luminance": 0.05809
}

Semantic roles & 50–950 ramp

primary
#7B156B
secondary
#3BB04E
accent
#EE563A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7B156B

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

Preview Lab → · Contrast checker → · Palette generator →

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