#7B1876#7B1876

#7B1876 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.168 H 330.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7B1876
RGBrgb(123, 24, 118)
HSLhsl(303, 67%, 29%)
HSVhsv(303, 80%, 48%)
CMYKcmyk(0%, 80.5%, 4.1%, 51.8%)
CIE-LABlab(29.85, 51.58, -30.13)
CIE-LCHlch(29.85, 59.73, 329.71°)
OKLaboklab(41.76% 0.1464 -0.0832)
OKLCHoklch(41.76% 0.168 330.4)
XYZxyz(11.7650, 6.1732, 17.7079)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1876 #187B1D
analogous
#4F187B #7B1876 #7B1845
triadic
#7B1876 #767B18 #18767B
tetradic
#7B1876 #7B4F18 #187B1D #18457B
square
#7B1876 #7B4F18 #187B1D #18457B
split-complementary
#7B1876 #457B18 #187B4F
monochromatic
#1A0519 #480E45 #7B1876 #AE22A7 #D836D0

Accessibility & contrast

On white

9.40
#7B1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7B1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1876
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1876#FFFFFF#000000##FFFFFF
##7B18761.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093E78
Deuteranopia (green-blind)
#384B74
Tritanopia (blue-blind)
#802647
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1876;
/* rgb */ color: rgb(123, 24, 118);
/* oklch */ color: oklch(41.8% 0.168 330.4);
Tailwind
colors: {
  custom: {
    50: '#a5629e',
    500: '#7b1876',
    950: '#000000',
  },
}
SCSS
$custom: #7b1876;
$custom-light: #a5629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1876",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 303.03,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4176,
    "c": 0.16843,
    "h": 330.4
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#7B1876
secondary
#3FB045
accent
#EA463E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1876

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

Preview Lab → · Contrast checker → · Palette generator →

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