#7B156F#7B156F

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

Color values

HEX#7B156F
RGBrgb(123, 21, 111)
HSLhsl(307, 71%, 28%)
HSVhsv(307, 83%, 48%)
CMYKcmyk(0%, 82.9%, 9.8%, 51.8%)
CIE-LABlab(29.15, 51.29, -26.76)
CIE-LCHlch(29.15, 57.86, 332.45°)
OKLaboklab(41.13% 0.1488 -0.0735)
OKLCHoklch(41.13% 0.166 333.7)
XYZxyz(11.3059, 5.8960, 15.5784)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B156F #157B21
analogous
#54157B #7B156F #7B153C
triadic
#7B156F #6F7B15 #156F7B
tetradic
#7B156F #7B5415 #157B21 #153C7B
square
#7B156F #7B5415 #157B21 #153C7B
split-complementary
#7B156F #3C7B15 #157B54
monochromatic
#1A0418 #470C40 #7B156F #AF1E9E #DB2FC7

Accessibility & contrast

On white

9.64
#7B156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7B156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B156F
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B156F#FFFFFF#000000##FFFFFF
##7B156F1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113B71
Deuteranopia (green-blind)
#3A4A6D
Tritanopia (blue-blind)
#812142
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b156f;
/* rgb */ color: rgb(123, 21, 111);
/* oklch */ color: oklch(41.1% 0.166 333.7);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7b156f',
    950: '#000000',
  },
}
SCSS
$custom: #7b156f;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7b156f",
  "rgb": {
    "r": 123,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 307.059,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41132,
    "c": 0.16594,
    "h": 333.7
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#7B156F
secondary
#3BB049
accent
#EE4F3A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B156F

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

Preview Lab → · Contrast checker → · Palette generator →

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