#7E2A7D#7E2A7D

#7E2A7D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.3% C 0.154 H 328.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7E2A7D
RGBrgb(126, 42, 125)
HSLhsl(301, 50%, 33%)
HSVhsv(301, 67%, 49%)
CMYKcmyk(0%, 66.7%, 0.8%, 50.6%)
CIE-LABlab(33.08, 46.95, -29.39)
CIE-LCHlch(33.08, 55.39, 327.96°)
OKLaboklab(44.31% 0.1313 -0.0811)
OKLCHoklch(44.31% 0.154 328.3)
XYZxyz(13.1337, 7.5731, 20.1681)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A7D #2A7E2B
analogous
#552A7E #7E2A7D #7E2A53
triadic
#7E2A7D #7D7E2A #2A7D7E
tetradic
#7E2A7D #7E552A #2A7E2B #2A537E
square
#7E2A7D #7E552A #2A7E2B #2A537E
split-complementary
#7E2A7D #537E2A #2A7E55
monochromatic
#220B22 #501B4F #7E2A7D #AC39AB #C85AC7

Accessibility & contrast

On white

8.35
#7E2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2A7D
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A7D#FFFFFF#000000##FFFFFF
##7E2A7D1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#3F527B
Tritanopia (blue-blind)
#823550
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2a7d;
/* rgb */ color: rgb(126, 42, 125);
/* oklch */ color: oklch(44.3% 0.154 328.3);
Tailwind
colors: {
  custom: {
    50: '#a66ba3',
    500: '#7e2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a7d;
$custom-light: #a66ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a7d",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 300.714,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44312,
    "c": 0.15435,
    "h": 328.3
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#7E2A7D
secondary
#56AE57
accent
#DA504E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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