#7A2591#7A2591

#7A2591 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.5% C 0.177 H 318.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7A2591
RGBrgb(122, 37, 145)
HSLhsl(287, 59%, 36%)
HSVhsv(287, 74%, 57%)
CMYKcmyk(15.9%, 74.5%, 0%, 43.1%)
CIE-LABlab(32.93, 51.87, -42.06)
CIE-LCHlch(32.93, 66.78, 320.96°)
OKLaboklab(44.47% 0.1315 -0.1182)
OKLCHoklch(44.47% 0.177 318.1)
XYZxyz(13.7977, 7.5057, 27.5045)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2591 #3C9125
analogous
#442591 #7A2591 #912572
triadic
#7A2591 #917A25 #25917A
tetradic
#7A2591 #914425 #3C9125 #257291
square
#7A2591 #914425 #3C9125 #257291
split-complementary
#7A2591 #729125 #259144
monochromatic
#280C2F #511960 #7A2591 #A331C2 #BB5BD5

Accessibility & contrast

On white

8.40
#7A2591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7A2591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2591
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2591#FFFFFF#000000##FFFFFF
##7A25911.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#2A508F
Tritanopia (blue-blind)
#793B59
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2591;
/* rgb */ color: rgb(122, 37, 145);
/* oklch */ color: oklch(44.5% 0.177 318.1);
Tailwind
colors: {
  custom: {
    50: '#a468b2',
    500: '#7a2591',
    950: '#000000',
  },
}
SCSS
$custom: #7a2591;
$custom-light: #a468b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2591",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 145
  },
  "hsl": {
    "h": 287.222,
    "s": 59.341,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44471,
    "c": 0.17682,
    "h": 318.1
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#7A2591
secondary
#6DBA58
accent
#E34567
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7A2591

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

Preview Lab → · Contrast checker → · Palette generator →

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