#7A2F71#7A2F71

#7A2F71 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.6% C 0.134 H 332.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#7A2F71
RGBrgb(122, 47, 113)
HSLhsl(307, 44%, 33%)
HSVhsv(307, 61%, 48%)
CMYKcmyk(0%, 61.5%, 7.4%, 52.2%)
CIE-LABlab(32.62, 41.42, -22.60)
CIE-LCHlch(32.62, 47.19, 331.38°)
OKLaboklab(43.65% 0.1188 -0.0617)
OKLCHoklch(43.65% 0.134 332.5)
XYZxyz(12.0232, 7.3637, 16.4077)
Luminance0.0736 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2F71 #2F7A38
analogous
#5D2F7A #7A2F71 #7A2F4B
triadic
#7A2F71 #717A2F #2F717A
tetradic
#7A2F71 #7A5D2F #2F7A38 #2F4B7A
square
#7A2F71 #7A5D2F #2F7A38 #2F4B7A
split-complementary
#7A2F71 #4B7A2F #2F7A5D
monochromatic
#220D1F #4E1E48 #7A2F71 #A6409A #C261B7

Accessibility & contrast

On white

8.49
#7A2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7A2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2F71
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2F71#FFFFFF#000000##FFFFFF
##7A2F711.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4673
Deuteranopia (green-blind)
#44516F
Tritanopia (blue-blind)
#7F354B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7a2f71;
/* rgb */ color: rgb(122, 47, 113);
/* oklch */ color: oklch(43.6% 0.134 332.5);
Tailwind
colors: {
  custom: {
    50: '#a36c9a',
    500: '#7a2f71',
    950: '#000000',
  },
}
SCSS
$custom: #7a2f71;
$custom-light: #a36c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2f71",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 307.2,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43646,
    "c": 0.13389,
    "h": 332.5
  },
  "luminance": 0.07363
}

Semantic roles & 50–950 ramp

primary
#7A2F71
secondary
#5CA965
accent
#D46354
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7A2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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