#7B1B8A#7B1B8A

#7B1B8A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.182 H 321.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7B1B8A
RGBrgb(123, 27, 138)
HSLhsl(292, 67%, 32%)
HSVhsv(292, 80%, 54%)
CMYKcmyk(10.9%, 80.4%, 0%, 45.9%)
CIE-LABlab(31.42, 54.20, -40.16)
CIE-LCHlch(31.42, 67.46, 323.46°)
OKLaboklab(43.28% 0.1427 -0.1125)
OKLCHoklch(43.28% 0.182 321.7)
XYZxyz(13.1473, 6.8306, 24.6658)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1B8A #2A8A1B
analogous
#441B8A #7B1B8A #8A1B62
triadic
#7B1B8A #8A7B1B #1B8A7B
tetradic
#7B1B8A #8A441B #2A8A1B #1B628A
square
#7B1B8A #8A441B #2A8A1B #1B628A
split-complementary
#7B1B8A #628A1B #1B8A44
monochromatic
#200724 #4D1157 #7B1B8A #A925BD #C645DB

Accessibility & contrast

On white

8.88
#7B1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B1B8A
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1B8A#FFFFFF#000000##FFFFFF
##7B1B8A1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#2B4D88
Tritanopia (blue-blind)
#7C3253
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b1b8a;
/* rgb */ color: rgb(123, 27, 138);
/* oklch */ color: oklch(43.3% 0.182 321.7);
Tailwind
colors: {
  custom: {
    50: '#a564ad',
    500: '#7b1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7b1b8a;
$custom-light: #a564ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1b8a",
  "rgb": {
    "r": 123,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 291.892,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43281,
    "c": 0.18172,
    "h": 321.7
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#7B1B8A
secondary
#55BC45
accent
#EA3E55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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