#7B2591#7B2591

#7B2591 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.177 H 318.5°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7B2591
RGBrgb(123, 37, 145)
HSLhsl(288, 59%, 36%)
HSVhsv(288, 74%, 57%)
CMYKcmyk(15.2%, 74.5%, 0%, 43.1%)
CIE-LABlab(33.09, 52.08, -41.80)
CIE-LCHlch(33.09, 66.78, 321.25°)
OKLaboklab(44.62% 0.1328 -0.1174)
OKLCHoklch(44.62% 0.177 318.5)
XYZxyz(13.9401, 7.5791, 27.5112)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2591 #3B9125
analogous
#452591 #7B2591 #912571
triadic
#7B2591 #917B25 #25917B
tetradic
#7B2591 #914525 #3B9125 #257191
square
#7B2591 #914525 #3B9125 #257191
split-complementary
#7B2591 #719125 #259145
monochromatic
#280C2F #521960 #7B2591 #A431C2 #BC5BD5

Accessibility & contrast

On white

8.35
#7B2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7B2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2591
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2591#FFFFFF#000000##FFFFFF
##7B25911.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#2B518F
Tritanopia (blue-blind)
#7B3B59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7b2591;
/* rgb */ color: rgb(123, 37, 145);
/* oklch */ color: oklch(44.6% 0.177 318.5);
Tailwind
colors: {
  custom: {
    50: '#a569b2',
    500: '#7b2591',
    950: '#000000',
  },
}
SCSS
$custom: #7b2591;
$custom-light: #a569b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2591",
  "rgb": {
    "r": 123,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 287.778,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44616,
    "c": 0.17723,
    "h": 318.5
  },
  "luminance": 0.07578
}

Semantic roles & 50–950 ramp

primary
#7B2591
secondary
#6CBA58
accent
#E34565
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7B2591

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

Preview Lab → · Contrast checker → · Palette generator →

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