#7E2D7D#7E2D7D

#7E2D7D is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.150 H 328.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#7E2D7D
RGBrgb(126, 45, 125)
HSLhsl(301, 47%, 34%)
HSVhsv(301, 64%, 49%)
CMYKcmyk(0%, 64.3%, 0.8%, 50.6%)
CIE-LABlab(33.55, 45.64, -28.65)
CIE-LCHlch(33.55, 53.89, 327.89°)
OKLaboklab(44.65% 0.1276 -0.079)
OKLCHoklch(44.65% 0.15 328.2)
XYZxyz(13.2441, 7.7939, 20.2049)
Luminance0.0779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D7D #2D7E2E
analogous
#562D7E #7E2D7D #7E2D54
triadic
#7E2D7D #7D7E2D #2D7D7E
tetradic
#7E2D7D #7E562D #2D7E2E #2D547E
square
#7E2D7D #7E562D #2D7E2E #2D547E
split-complementary
#7E2D7D #547E2D #2D7E56
monochromatic
#240D24 #511D50 #7E2D7D #AB3DAA #C65FC5

Accessibility & contrast

On white

8.21
#7E2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D7D
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D7D#FFFFFF#000000##FFFFFF
##7E2D7D1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24487F
Deuteranopia (green-blind)
#41537B
Tritanopia (blue-blind)
#823751
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2d7d;
/* rgb */ color: rgb(126, 45, 125);
/* oklch */ color: oklch(44.7% 0.150 328.2);
Tailwind
colors: {
  custom: {
    50: '#a66ca3',
    500: '#7e2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d7d;
$custom-light: #a66ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d7d",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 300.741,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44654,
    "c": 0.15007,
    "h": 328.2
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#7E2D7D
secondary
#5AAC5B
accent
#D75251
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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