#7B1871#7B1871

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

Color values

HEX#7B1871
RGBrgb(123, 24, 113)
HSLhsl(306, 67%, 29%)
HSVhsv(306, 80%, 48%)
CMYKcmyk(0%, 80.5%, 8.1%, 51.8%)
CIE-LABlab(29.56, 50.76, -27.40)
CIE-LCHlch(29.56, 57.68, 331.64°)
OKLaboklab(41.46% 0.1464 -0.0753)
OKLCHoklch(41.46% 0.165 332.8)
XYZxyz(11.4757, 6.0575, 16.1844)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1871 #187B22
analogous
#54187B #7B1871 #7B1840
triadic
#7B1871 #717B18 #18717B
tetradic
#7B1871 #7B5418 #187B22 #18407B
square
#7B1871 #7B5418 #187B22 #18407B
split-complementary
#7B1871 #407B18 #187B54
monochromatic
#1A0518 #480E42 #7B1871 #AE22A0 #D836C7

Accessibility & contrast

On white

9.50
#7B1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7B1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1871
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1871#FFFFFF#000000##FFFFFF
##7B18711.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b1871;
/* rgb */ color: rgb(123, 24, 113);
/* oklch */ color: oklch(41.5% 0.165 332.8);
Tailwind
colors: {
  custom: {
    50: '#a5629a',
    500: '#7b1871',
    950: '#000000',
  },
}
SCSS
$custom: #7b1871;
$custom-light: #a5629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1871",
  "rgb": {
    "r": 123,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 306.061,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41461,
    "c": 0.16459,
    "h": 332.8
  },
  "luminance": 0.06056
}

Semantic roles & 50–950 ramp

primary
#7B1871
secondary
#3FB04A
accent
#EA4F3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B1871

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

Preview Lab → · Contrast checker → · Palette generator →

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