#7B1771#7B1771

#7B1771 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.4% C 0.166 H 332.8°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#7B1771
RGBrgb(123, 23, 113)
HSLhsl(306, 68%, 29%)
HSVhsv(306, 81%, 48%)
CMYKcmyk(0%, 81.3%, 8.1%, 51.8%)
CIE-LABlab(29.46, 51.05, -27.56)
CIE-LCHlch(29.46, 58.02, 331.64°)
OKLaboklab(41.39% 0.1472 -0.0758)
OKLCHoklch(41.39% 0.166 332.8)
XYZxyz(11.4555, 6.0170, 16.1777)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1771 #177B21
analogous
#53177B #7B1771 #7B173F
triadic
#7B1771 #717B17 #17717B
tetradic
#7B1771 #7B5317 #177B21 #173F7B
square
#7B1771 #7B5317 #177B21 #173F7B
split-complementary
#7B1771 #3F7B17 #177B53
monochromatic
#1A0518 #470D42 #7B1771 #AF21A0 #D933C8

Accessibility & contrast

On white

9.53
#7B1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7B1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1771
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1771#FFFFFF#000000##FFFFFF
##7B17711.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#3A4A6F
Tritanopia (blue-blind)
#812344
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b1771;
/* rgb */ color: rgb(123, 23, 113);
/* oklch */ color: oklch(41.4% 0.166 332.8);
Tailwind
colors: {
  custom: {
    50: '#a5629a',
    500: '#7b1771',
    950: '#000000',
  },
}
SCSS
$custom: #7b1771;
$custom-light: #a5629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1771",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 306,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41388,
    "c": 0.16557,
    "h": 332.8
  },
  "luminance": 0.06016
}

Semantic roles & 50–950 ramp

primary
#7B1771
secondary
#3EB049
accent
#EB4E3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1771

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

Preview Lab → · Contrast checker → · Palette generator →

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