#7E2E7D#7E2E7D

#7E2E7D is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.149 H 328.2°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7E2E7D
RGBrgb(126, 46, 125)
HSLhsl(301, 47%, 34%)
HSVhsv(301, 63%, 49%)
CMYKcmyk(0%, 63.5%, 0.8%, 50.6%)
CIE-LABlab(33.71, 45.19, -28.39)
CIE-LCHlch(33.71, 53.37, 327.86°)
OKLaboklab(44.77% 0.1263 -0.0783)
OKLCHoklch(44.77% 0.149 328.2)
XYZxyz(13.2827, 7.8712, 20.2177)
Luminance0.0787 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E7D #2E7E2F
analogous
#572E7E #7E2E7D #7E2E55
triadic
#7E2E7D #7D7E2E #2E7D7E
tetradic
#7E2E7D #7E572E #2E7E2F #2E557E
square
#7E2E7D #7E572E #2E7E2F #2E557E
split-complementary
#7E2E7D #557E2E #2E7E57
monochromatic
#240D24 #511E51 #7E2E7D #AB3EA9 #C561C4

Accessibility & contrast

On white

8.16
#7E2E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7E2E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E7D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E7D#FFFFFF#000000##FFFFFF
##7E2E7D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2e7d;
/* rgb */ color: rgb(126, 46, 125);
/* oklch */ color: oklch(44.8% 0.149 328.2);
Tailwind
colors: {
  custom: {
    50: '#a66da3',
    500: '#7e2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e7d;
$custom-light: #a66da3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e7d",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 300.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44773,
    "c": 0.1486,
    "h": 328.2
  },
  "luminance": 0.0787
}

Semantic roles & 50–950 ramp

primary
#7E2E7D
secondary
#5CAC5D
accent
#D65352
background
#FAF6FA
surface
#F4ECF3
border
#CEC7CD
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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