#7B156E#7B156E

#7B156E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.165 H 334.2°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#7B156E
RGBrgb(123, 21, 110)
HSLhsl(308, 71%, 28%)
HSVhsv(308, 83%, 48%)
CMYKcmyk(0%, 82.9%, 10.6%, 51.8%)
CIE-LABlab(29.09, 51.14, -26.21)
CIE-LCHlch(29.09, 57.46, 332.86°)
OKLaboklab(41.07% 0.1488 -0.0719)
OKLCHoklch(41.07% 0.165 334.2)
XYZxyz(11.2511, 5.8741, 15.2901)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B156E #157B22
analogous
#55157B #7B156E #7B153B
triadic
#7B156E #6E7B15 #156E7B
tetradic
#7B156E #7B5515 #157B22 #153B7B
square
#7B156E #7B5515 #157B22 #153B7B
split-complementary
#7B156E #3B7B15 #157B55
monochromatic
#1A0417 #470C3F #7B156E #AF1E9D #DB2FC5

Accessibility & contrast

On white

9.66
#7B156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B156E
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B156E#FFFFFF#000000##FFFFFF
##7B156E1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123B70
Deuteranopia (green-blind)
#3B4A6C
Tritanopia (blue-blind)
#812041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b156e;
/* rgb */ color: rgb(123, 21, 110);
/* oklch */ color: oklch(41.1% 0.165 334.2);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7b156e',
    950: '#000000',
  },
}
SCSS
$custom: #7b156e;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7b156e",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 307.647,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41074,
    "c": 0.1652,
    "h": 334.2
  },
  "luminance": 0.05873
}

Semantic roles & 50–950 ramp

primary
#7B156E
secondary
#3BB04A
accent
#EE513A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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