#7A2E71#7A2E71

#7A2E71 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.5% C 0.135 H 332.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#7A2E71
RGBrgb(122, 46, 113)
HSLhsl(307, 45%, 33%)
HSVhsv(307, 62%, 48%)
CMYKcmyk(0%, 62.3%, 7.4%, 52.2%)
CIE-LABlab(32.45, 41.90, -22.87)
CIE-LCHlch(32.45, 47.73, 331.37°)
OKLaboklab(43.52% 0.1202 -0.0625)
OKLCHoklch(43.52% 0.135 332.5)
XYZxyz(11.9837, 7.2847, 16.3945)
Luminance0.0728 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2E71 #2E7A37
analogous
#5D2E7A #7A2E71 #7A2E4B
triadic
#7A2E71 #717A2E #2E717A
tetradic
#7A2E71 #7A5D2E #2E7A37 #2E4B7A
square
#7A2E71 #7A5D2E #2E7A37 #2E4B7A
split-complementary
#7A2E71 #4B7A2E #2E7A5D
monochromatic
#210C1F #4E1D48 #7A2E71 #A63F9A #C360B7

Accessibility & contrast

On white

8.55
#7A2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7A2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2E71
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2E71#FFFFFF#000000##FFFFFF
##7A2E711.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4573
Deuteranopia (green-blind)
#44506F
Tritanopia (blue-blind)
#7F344B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7a2e71;
/* rgb */ color: rgb(122, 46, 113);
/* oklch */ color: oklch(43.5% 0.135 332.5);
Tailwind
colors: {
  custom: {
    50: '#a36c9a',
    500: '#7a2e71',
    950: '#000000',
  },
}
SCSS
$custom: #7a2e71;
$custom-light: #a36c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2e71",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 307.105,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43518,
    "c": 0.13548,
    "h": 332.5
  },
  "luminance": 0.07284
}

Semantic roles & 50–950 ramp

primary
#7A2E71
secondary
#5AAA64
accent
#D56253
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7A2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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