#7B1B8B#7B1B8B

#7B1B8B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.183 H 321.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7B1B8B
RGBrgb(123, 27, 139)
HSLhsl(291, 67%, 33%)
HSVhsv(291, 81%, 55%)
CMYKcmyk(11.5%, 80.6%, 0%, 45.5%)
CIE-LABlab(31.49, 54.38, -40.68)
CIE-LCHlch(31.49, 67.91, 323.20°)
OKLaboklab(43.35% 0.1426 -0.114)
OKLCHoklch(43.35% 0.183 321.4)
XYZxyz(13.2200, 6.8596, 25.0488)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B8B #2B8B1B
analogous
#431B8B #7B1B8B #8B1B63
triadic
#7B1B8B #8B7B1B #1B8B7B
tetradic
#7B1B8B #8B431B #2B8B1B #1B638B
square
#7B1B8B #8B431B #2B8B1B #1B638B
split-complementary
#7B1B8B #638B1B #1B8B43
monochromatic
#200725 #4E1158 #7B1B8B #A825BE #C645DB

Accessibility & contrast

On white

8.85
#7B1B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7B1B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1B8B
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B8B#FFFFFF#000000##FFFFFF
##7B1B8B1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#2A4D89
Tritanopia (blue-blind)
#7C3353
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b1b8b;
/* rgb */ color: rgb(123, 27, 139);
/* oklch */ color: oklch(43.4% 0.183 321.4);
Tailwind
colors: {
  custom: {
    50: '#a564ad',
    500: '#7b1b8b',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b8b;
$custom-light: #a564ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b8b",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 291.429,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4335,
    "c": 0.18256,
    "h": 321.4
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#7B1B8B
secondary
#56BC45
accent
#EA3D56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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