#7E2C7D#7E2C7D

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

Color values

HEX#7E2C7D
RGBrgb(126, 44, 125)
HSLhsl(301, 48%, 33%)
HSVhsv(301, 65%, 49%)
CMYKcmyk(0%, 65.1%, 0.8%, 50.6%)
CIE-LABlab(33.39, 46.09, -28.90)
CIE-LCHlch(33.39, 54.40, 327.91°)
OKLaboklab(44.54% 0.1288 -0.0797)
OKLCHoklch(44.54% 0.152 328.2)
XYZxyz(13.2064, 7.7185, 20.1923)
Luminance0.0772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C7D #2C7E2D
analogous
#562C7E #7E2C7D #7E2C54
triadic
#7E2C7D #7D7E2C #2C7D7E
tetradic
#7E2C7D #7E562C #2C7E2D #2C547E
square
#7E2C7D #7E562C #2C7E2D #2C547E
split-complementary
#7E2C7D #547E2C #2C7E56
monochromatic
#230C23 #511C50 #7E2C7D #AB3CAA #C75EC5

Accessibility & contrast

On white

8.26
#7E2C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C7D
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C7D#FFFFFF#000000##FFFFFF
##7E2C7D1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2c7d;
/* rgb */ color: rgb(126, 44, 125);
/* oklch */ color: oklch(44.5% 0.152 328.2);
Tailwind
colors: {
  custom: {
    50: '#a66ca3',
    500: '#7e2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c7d;
$custom-light: #a66ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c7d",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 300.732,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44538,
    "c": 0.15152,
    "h": 328.2
  },
  "luminance": 0.07718
}

Semantic roles & 50–950 ramp

primary
#7E2C7D
secondary
#59AD5A
accent
#D85250
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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