#7E2B7D#7E2B7D

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

Color values

HEX#7E2B7D
RGBrgb(126, 43, 125)
HSLhsl(301, 49%, 33%)
HSVhsv(301, 66%, 49%)
CMYKcmyk(0%, 65.9%, 0.8%, 50.6%)
CIE-LABlab(33.23, 46.52, -29.15)
CIE-LCHlch(33.23, 54.90, 327.93°)
OKLaboklab(44.42% 0.1301 -0.0804)
OKLCHoklch(44.42% 0.153 328.3)
XYZxyz(13.1696, 7.6449, 20.1800)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B7D #2B7E2C
analogous
#552B7E #7E2B7D #7E2B53
triadic
#7E2B7D #7D7E2B #2B7D7E
tetradic
#7E2B7D #7E552B #2B7E2C #2B537E
square
#7E2B7D #7E552B #2B7E2C #2B537E
split-complementary
#7E2B7D #537E2B #2B7E55
monochromatic
#230C22 #501B50 #7E2B7D #AC3BAA #C75CC6

Accessibility & contrast

On white

8.30
#7E2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2B7D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B7D#FFFFFF#000000##FFFFFF
##7E2B7D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21477F
Deuteranopia (green-blind)
#40527B
Tritanopia (blue-blind)
#823650
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2b7d;
/* rgb */ color: rgb(126, 43, 125);
/* oklch */ color: oklch(44.4% 0.153 328.3);
Tailwind
colors: {
  custom: {
    50: '#a66ba3',
    500: '#7e2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b7d;
$custom-light: #a66ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b7d",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 300.723,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44424,
    "c": 0.15295,
    "h": 328.3
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#7E2B7D
secondary
#58AD59
accent
#D9514F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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