#7B1971#7B1971

#7B1971 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.5% C 0.164 H 332.8°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#7B1971
RGBrgb(123, 25, 113)
HSLhsl(306, 66%, 29%)
HSVhsv(306, 80%, 48%)
CMYKcmyk(0%, 79.7%, 8.1%, 51.8%)
CIE-LABlab(29.66, 50.46, -27.23)
CIE-LCHlch(29.66, 57.34, 331.64°)
OKLaboklab(41.54% 0.1455 -0.0748)
OKLCHoklch(41.54% 0.164 332.8)
XYZxyz(11.4967, 6.0995, 16.1914)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1971 #197B23
analogous
#54197B #7B1971 #7B1940
triadic
#7B1971 #717B19 #19717B
tetradic
#7B1971 #7B5419 #197B23 #19407B
square
#7B1971 #7B5419 #197B23 #19407B
split-complementary
#7B1971 #407B19 #197B54
monochromatic
#190517 #480F42 #7B1971 #AE23A0 #D738C6

Accessibility & contrast

On white

9.46
#7B1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7B1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1971
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1971#FFFFFF#000000##FFFFFF
##7B19711.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#812444
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b1971;
/* rgb */ color: rgb(123, 25, 113);
/* oklch */ color: oklch(41.5% 0.164 332.8);
Tailwind
colors: {
  custom: {
    50: '#a5629a',
    500: '#7b1971',
    950: '#000000',
  },
}
SCSS
$custom: #7b1971;
$custom-light: #a5629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1971",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 306.122,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41536,
    "c": 0.1636,
    "h": 332.8
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#7B1971
secondary
#40AF4C
accent
#E9503F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1971

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

Preview Lab → · Contrast checker → · Palette generator →

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