#7E1C83#7E1C83

#7E1C83 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.176 H 325.9°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E1C83
RGBrgb(126, 28, 131)
HSLhsl(297, 65%, 31%)
HSVhsv(297, 79%, 51%)
CMYKcmyk(3.8%, 78.6%, 0%, 48.6%)
CIE-LABlab(31.59, 53.24, -35.50)
CIE-LCHlch(31.59, 63.99, 326.31°)
OKLaboklab(43.36% 0.146 -0.0988)
OKLCHoklch(43.36% 0.176 325.9)
XYZxyz(13.1159, 6.9057, 22.1104)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C83 #21831C
analogous
#4A1C83 #7E1C83 #831C54
triadic
#7E1C83 #837E1C #1C837E
tetradic
#7E1C83 #834A1C #21831C #1C5483
square
#7E1C83 #834A1C #21831C #1C5483
split-complementary
#7E1C83 #54831C #1C834A
monochromatic
#1D061E #4D1151 #7E1C83 #AE27B5 #D043D7

Accessibility & contrast

On white

8.82
#7E1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C83
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C83#FFFFFF#000000##FFFFFF
##7E1C831.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004386
Deuteranopia (green-blind)
#344E81
Tritanopia (blue-blind)
#812F4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1c83;
/* rgb */ color: rgb(126, 28, 131);
/* oklch */ color: oklch(43.4% 0.176 325.9);
Tailwind
colors: {
  custom: {
    50: '#a765a7',
    500: '#7e1c83',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c83;
$custom-light: #a765a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c83",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 297.087,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43359,
    "c": 0.17627,
    "h": 325.9
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#7E1C83
secondary
#4AB645
accent
#E84048
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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