#7B2871#7B2871

#7B2871 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.145 H 332.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7B2871
RGBrgb(123, 40, 113)
HSLhsl(307, 51%, 32%)
HSVhsv(307, 67%, 48%)
CMYKcmyk(0%, 67.5%, 8.1%, 51.8%)
CIE-LABlab(31.63, 44.90, -24.14)
CIE-LCHlch(31.63, 50.97, 331.73°)
OKLaboklab(42.95% 0.1292 -0.0661)
OKLCHoklch(42.95% 0.145 332.9)
XYZxyz(11.9078, 6.9217, 16.3284)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2871 #287B32
analogous
#5C287B #7B2871 #7B2848
triadic
#7B2871 #717B28 #28717B
tetradic
#7B2871 #7B5C28 #287B32 #28487B
square
#7B2871 #7B5C28 #287B32 #28487B
split-complementary
#7B2871 #487B28 #287B5C
monochromatic
#1F0A1C #4D1947 #7B2871 #A9379B #C856BA

Accessibility & contrast

On white

8.81
#7B2871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7B2871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2871
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2871#FFFFFF#000000##FFFFFF
##7B28711.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254373
Deuteranopia (green-blind)
#414F6F
Tritanopia (blue-blind)
#802F49
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7b2871;
/* rgb */ color: rgb(123, 40, 113);
/* oklch */ color: oklch(43.0% 0.145 332.9);
Tailwind
colors: {
  custom: {
    50: '#a4699a',
    500: '#7b2871',
    950: '#000000',
  },
}
SCSS
$custom: #7b2871;
$custom-light: #a4699a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2871",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 307.229,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.14515,
    "h": 332.9
  },
  "luminance": 0.06921
}

Semantic roles & 50–950 ramp

primary
#7B2871
secondary
#52AD5D
accent
#DA5E4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7B2871

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

Preview Lab → · Contrast checker → · Palette generator →

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