#7B2571#7B2571

#7B2571 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.149 H 332.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#7B2571
RGBrgb(123, 37, 113)
HSLhsl(307, 54%, 31%)
HSVhsv(307, 70%, 48%)
CMYKcmyk(0%, 69.9%, 8.1%, 51.8%)
CIE-LABlab(31.18, 46.15, -24.85)
CIE-LCHlch(31.18, 52.42, 331.71°)
OKLaboklab(42.63% 0.1329 -0.0681)
OKLCHoklch(42.63% 0.149 332.9)
XYZxyz(11.8106, 6.7273, 16.2960)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2571 #257B2F
analogous
#5A257B #7B2571 #7B2546
triadic
#7B2571 #717B25 #25717B
tetradic
#7B2571 #7B5A25 #257B2F #25467B
square
#7B2571 #7B5A25 #257B2F #25467B
split-complementary
#7B2571 #467B25 #257B5A
monochromatic
#1D091B #4C1746 #7B2571 #AA339C #CA50BC

Accessibility & contrast

On white

8.95
#7B2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7B2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2571
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2571#FFFFFF#000000##FFFFFF
##7B25711.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224173
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#812D48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7b2571;
/* rgb */ color: rgb(123, 37, 113);
/* oklch */ color: oklch(42.6% 0.149 332.9);
Tailwind
colors: {
  custom: {
    50: '#a4679a',
    500: '#7b2571',
    950: '#000000',
  },
}
SCSS
$custom: #7b2571;
$custom-light: #a4679a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2571",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 306.977,
    "s": 53.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42628,
    "c": 0.14933,
    "h": 332.9
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#7B2571
secondary
#4FAD5A
accent
#DD5C4B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2571

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

Preview Lab → · Contrast checker → · Palette generator →

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