#7E2B72#7E2B72

#7E2B72 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.144 H 333.9°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7E2B72
RGBrgb(126, 43, 114)
HSLhsl(309, 49%, 33%)
HSVhsv(309, 66%, 49%)
CMYKcmyk(0%, 65.9%, 9.5%, 50.6%)
CIE-LABlab(32.66, 44.59, -23.13)
CIE-LCHlch(32.66, 50.23, 332.58°)
OKLaboklab(43.82% 0.129 -0.0631)
OKLCHoklch(43.82% 0.144 333.9)
XYZxyz(12.5054, 7.3793, 16.6820)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B72 #2B7E37
analogous
#602B7E #7E2B72 #7E2B48
triadic
#7E2B72 #727E2B #2B727E
tetradic
#7E2B72 #7E602B #2B7E37 #2B487E
square
#7E2B72 #7E602B #2B7E37 #2B487E
split-complementary
#7E2B72 #487E2B #2B7E60
monochromatic
#230C1F #501B49 #7E2B72 #AC3B9B #C75CB8

Accessibility & contrast

On white

8.48
#7E2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B72
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B72#FFFFFF#000000##FFFFFF
##7E2B721.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4574
Deuteranopia (green-blind)
#455170
Tritanopia (blue-blind)
#84314A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2b72;
/* rgb */ color: rgb(126, 43, 114);
/* oklch */ color: oklch(43.8% 0.144 333.9);
Tailwind
colors: {
  custom: {
    50: '#a66b9b',
    500: '#7e2b72',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b72;
$custom-light: #a66b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b72",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 308.675,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43817,
    "c": 0.1436,
    "h": 333.9
  },
  "luminance": 0.07378
}

Semantic roles & 50–950 ramp

primary
#7E2B72
secondary
#58AD64
accent
#D9634F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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