#7E2D72#7E2D72

#7E2D72 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.1% C 0.141 H 334.0°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2D72
RGBrgb(126, 45, 114)
HSLhsl(309, 47%, 34%)
HSVhsv(309, 64%, 49%)
CMYKcmyk(0%, 64.3%, 9.5%, 50.6%)
CIE-LABlab(32.98, 43.69, -22.62)
CIE-LCHlch(32.98, 49.20, 332.62°)
OKLaboklab(44.05% 0.1263 -0.0617)
OKLCHoklch(44.05% 0.141 334)
XYZxyz(12.5799, 7.5283, 16.7069)
Luminance0.0753 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D72 #2D7E39
analogous
#612D7E #7E2D72 #7E2D49
triadic
#7E2D72 #727E2D #2D727E
tetradic
#7E2D72 #7E612D #2D7E39 #2D497E
square
#7E2D72 #7E612D #2D7E39 #2D497E
split-complementary
#7E2D72 #497E2D #2D7E61
monochromatic
#240D20 #511D49 #7E2D72 #AB3D9B #C65FB7

Accessibility & contrast

On white

8.38
#7E2D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E2D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D72
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D72#FFFFFF#000000##FFFFFF
##7E2D721.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4674
Deuteranopia (green-blind)
#465270
Tritanopia (blue-blind)
#84334B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2d72;
/* rgb */ color: rgb(126, 45, 114);
/* oklch */ color: oklch(44.1% 0.141 334.0);
Tailwind
colors: {
  custom: {
    50: '#a66c9b',
    500: '#7e2d72',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d72;
$custom-light: #a66c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d72",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 308.889,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44054,
    "c": 0.14061,
    "h": 334
  },
  "luminance": 0.07527
}

Semantic roles & 50–950 ramp

primary
#7E2D72
secondary
#5AAC67
accent
#D76551
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2D72

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

Preview Lab → · Contrast checker → · Palette generator →

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