#7E2B7E#7E2B7E

#7E2B7E is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.154 H 327.8°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7E2B7E
RGBrgb(126, 43, 126)
HSLhsl(300, 49%, 33%)
HSVhsv(300, 66%, 49%)
CMYKcmyk(0%, 65.9%, 0%, 50.6%)
CIE-LABlab(33.29, 46.71, -29.68)
CIE-LCHlch(33.29, 55.34, 327.56°)
OKLaboklab(44.48% 0.1301 -0.082)
OKLCHoklch(44.48% 0.154 327.8)
XYZxyz(13.2338, 7.6706, 20.5182)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2B7E #2B7E2B
analogous
#542B7E #7E2B7E #7E2B54
triadic
#7E2B7E #7E7E2B #2B7E7E
tetradic
#7E2B7E #7E542B #2B7E2B #2B547E
square
#7E2B7E #7E542B #2B7E2B #2B547E
split-complementary
#7E2B7E #547E2B #2B7E54
monochromatic
#230C23 #501B50 #7E2B7E #AC3BAC #C75CC7

Accessibility & contrast

On white

8.29
#7E2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2B7E
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2B7E#FFFFFF#000000##FFFFFF
##7E2B7E1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#3F527C
Tritanopia (blue-blind)
#823650
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2b7e;
/* rgb */ color: rgb(126, 43, 126);
/* oklch */ color: oklch(44.5% 0.154 327.8);
Tailwind
colors: {
  custom: {
    50: '#a66ba4',
    500: '#7e2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #7e2b7e;
$custom-light: #a66ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2b7e",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44482,
    "c": 0.15382,
    "h": 327.8
  },
  "luminance": 0.0767
}

Semantic roles & 50–950 ramp

primary
#7E2B7E
secondary
#58AD58
accent
#D94F4F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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