#7B2872#7B2872

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

Color values

HEX#7B2872
RGBrgb(123, 40, 114)
HSLhsl(307, 51%, 32%)
HSVhsv(307, 67%, 48%)
CMYKcmyk(0%, 67.5%, 7.3%, 51.8%)
CIE-LABlab(31.68, 45.07, -24.69)
CIE-LCHlch(31.68, 51.39, 331.28°)
OKLaboklab(43.01% 0.1294 -0.0677)
OKLCHoklch(43.01% 0.146 332.4)
XYZxyz(11.9644, 6.9444, 16.6266)
Luminance0.0694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2872 #287B31
analogous
#5B287B #7B2872 #7B2849
triadic
#7B2872 #727B28 #28727B
tetradic
#7B2872 #7B5B28 #287B31 #28497B
square
#7B2872 #7B5B28 #287B31 #28497B
split-complementary
#7B2872 #497B28 #287B5B
monochromatic
#1F0A1C #4D1947 #7B2872 #A9379D #C856BB

Accessibility & contrast

On white

8.79
#7B2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7B2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2872
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2872#FFFFFF#000000##FFFFFF
##7B28721.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244374
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#803049
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7b2872;
/* rgb */ color: rgb(123, 40, 114);
/* oklch */ color: oklch(43.0% 0.146 332.4);
Tailwind
colors: {
  custom: {
    50: '#a4699b',
    500: '#7b2872',
    950: '#000000',
  },
}
SCSS
$custom: #7b2872;
$custom-light: #a4699b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2872",
  "rgb": {
    "r": 123,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 306.506,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43009,
    "c": 0.14598,
    "h": 332.4
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#7B2872
secondary
#52AD5C
accent
#DA5D4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7B2872

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

Preview Lab → · Contrast checker → · Palette generator →

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