#7E1C8D#7E1C8D

#7E1C8D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.185 H 321.9°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#7E1C8D
RGBrgb(126, 28, 141)
HSLhsl(292, 67%, 33%)
HSVhsv(292, 80%, 55%)
CMYKcmyk(10.6%, 80.1%, 0%, 44.7%)
CIE-LABlab(32.24, 55.05, -40.68)
CIE-LCHlch(32.24, 68.45, 323.54°)
OKLaboklab(44.02% 0.1452 -0.1139)
OKLCHoklch(44.02% 0.185 321.9)
XYZxyz(13.8266, 7.1900, 25.8537)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C8D #2B8D1C
analogous
#451C8D #7E1C8D #8D1C64
triadic
#7E1C8D #8D7E1C #1C8D7E
tetradic
#7E1C8D #8D451C #2B8D1C #1C648D
square
#7E1C8D #8D451C #2B8D1C #1C648D
split-complementary
#7E1C8D #648D1C #1C8D45
monochromatic
#230827 #50125A #7E1C8D #AC26C0 #C749DB

Accessibility & contrast

On white

8.61
#7E1C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7E1C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C8D
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C8D#FFFFFF#000000##FFFFFF
##7E1C8D1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2D4F8A
Tritanopia (blue-blind)
#7F3455
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7e1c8d;
/* rgb */ color: rgb(126, 28, 141);
/* oklch */ color: oklch(44.0% 0.185 321.9);
Tailwind
colors: {
  custom: {
    50: '#a765af',
    500: '#7e1c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c8d;
$custom-light: #a765af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c8d",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 292.035,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44022,
    "c": 0.18452,
    "h": 321.9
  },
  "luminance": 0.07189
}

Semantic roles & 50–950 ramp

primary
#7E1C8D
secondary
#58BD48
accent
#EA3E55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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