#7E1A83#7E1A83

#7E1A83 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.178 H 326.0°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7E1A83
RGBrgb(126, 26, 131)
HSLhsl(297, 67%, 31%)
HSVhsv(297, 80%, 51%)
CMYKcmyk(3.8%, 80.2%, 0%, 48.6%)
CIE-LABlab(31.38, 53.85, -35.84)
CIE-LCHlch(31.38, 64.69, 326.36°)
OKLaboklab(43.21% 0.1477 -0.0998)
OKLCHoklch(43.21% 0.178 326)
XYZxyz(13.0700, 6.8140, 22.0952)
Luminance0.0681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A83 #1F831A
analogous
#491A83 #7E1A83 #831A53
triadic
#7E1A83 #837E1A #1A837E
tetradic
#7E1A83 #83491A #1F831A #1A5383
square
#7E1A83 #83491A #1F831A #1A5383
split-complementary
#7E1A83 #53831A #1A8349
monochromatic
#1C061D #4D1050 #7E1A83 #AF24B6 #D13FD9

Accessibility & contrast

On white

8.89
#7E1A83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1A83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1A83
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A83#FFFFFF#000000##FFFFFF
##7E1A831.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1a83;
/* rgb */ color: rgb(126, 26, 131);
/* oklch */ color: oklch(43.2% 0.178 326.0);
Tailwind
colors: {
  custom: {
    50: '#a764a7',
    500: '#7e1a83',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a83;
$custom-light: #a764a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a83",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 131
  },
  "hsl": {
    "h": 297.143,
    "s": 66.879,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43209,
    "c": 0.17822,
    "h": 326
  },
  "luminance": 0.06813
}

Semantic roles & 50–950 ramp

primary
#7E1A83
secondary
#48B742
accent
#EA3E46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1A83

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

Preview Lab → · Contrast checker → · Palette generator →

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