#7A2B71#7A2B71

#7A2B71 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.1% C 0.140 H 332.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7A2B71
RGBrgb(122, 43, 113)
HSLhsl(307, 48%, 32%)
HSVhsv(307, 65%, 48%)
CMYKcmyk(0%, 64.8%, 7.4%, 52.2%)
CIE-LABlab(31.94, 43.29, -23.66)
CIE-LCHlch(31.94, 49.34, 331.34°)
OKLaboklab(43.15% 0.1242 -0.0648)
OKLCHoklch(43.15% 0.14 332.5)
XYZxyz(11.8706, 7.0585, 16.3568)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2B71 #2B7A34
analogous
#5B2B7A #7A2B71 #7A2B4A
triadic
#7A2B71 #717A2B #2B717A
tetradic
#7A2B71 #7A5B2B #2B7A34 #2B4A7A
square
#7A2B71 #7A5B2B #2B7A34 #2B4A7A
split-complementary
#7A2B71 #4A7A2B #2B7A5B
monochromatic
#1F0B1D #4D1B47 #7A2B71 #A73B9B #C55AB9

Accessibility & contrast

On white

8.71
#7A2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7A2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2B71
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2B71#FFFFFF#000000##FFFFFF
##7A2B711.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#424F6F
Tritanopia (blue-blind)
#7F324A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7a2b71;
/* rgb */ color: rgb(122, 43, 113);
/* oklch */ color: oklch(43.1% 0.140 332.5);
Tailwind
colors: {
  custom: {
    50: '#a36a9a',
    500: '#7a2b71',
    950: '#000000',
  },
}
SCSS
$custom: #7a2b71;
$custom-light: #a36a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2b71",
  "rgb": {
    "r": 122,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 306.835,
    "s": 47.879,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43148,
    "c": 0.1401,
    "h": 332.5
  },
  "luminance": 0.07058
}

Semantic roles & 50–950 ramp

primary
#7A2B71
secondary
#56AB60
accent
#D76050
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7A2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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