#7B1C8D#7B1C8D

#7B1C8D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.183 H 320.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7B1C8D
RGBrgb(123, 28, 141)
HSLhsl(290, 67%, 33%)
HSVhsv(290, 80%, 55%)
CMYKcmyk(12.8%, 80.1%, 0%, 44.7%)
CIE-LABlab(31.73, 54.45, -41.52)
CIE-LCHlch(31.73, 68.48, 322.67°)
OKLaboklab(43.56% 0.1415 -0.1165)
OKLCHoklch(43.56% 0.183 320.5)
XYZxyz(13.3908, 6.9653, 25.8332)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1C8D #2E8D1C
analogous
#421C8D #7B1C8D #8D1C67
triadic
#7B1C8D #8D7B1C #1C8D7B
tetradic
#7B1C8D #8D421C #2E8D1C #1C678D
square
#7B1C8D #8D421C #2E8D1C #1C678D
split-complementary
#7B1C8D #678D1C #1C8D42
monochromatic
#220827 #4E125A #7B1C8D #A826C0 #C349DB

Accessibility & contrast

On white

8.78
#7B1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1C8D
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1C8D#FFFFFF#000000##FFFFFF
##7B1C8D1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#294E8B
Tritanopia (blue-blind)
#7C3455
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b1c8d;
/* rgb */ color: rgb(123, 28, 141);
/* oklch */ color: oklch(43.6% 0.183 320.5);
Tailwind
colors: {
  custom: {
    50: '#a565af',
    500: '#7b1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7b1c8d;
$custom-light: #a565af;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1c8d",
  "rgb": {
    "r": 123,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 290.442,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43564,
    "c": 0.1833,
    "h": 320.5
  },
  "luminance": 0.06965
}

Semantic roles & 50–950 ramp

primary
#7B1C8D
secondary
#5BBD48
accent
#EA3E59
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7B1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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