#7E1F82#7E1F82

#7E1F82 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.172 H 326.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#7E1F82
RGBrgb(126, 31, 130)
HSLhsl(298, 61%, 32%)
HSVhsv(298, 76%, 51%)
CMYKcmyk(3.1%, 76.2%, 0%, 49%)
CIE-LABlab(31.87, 52.09, -34.43)
CIE-LCHlch(31.87, 62.44, 326.53°)
OKLaboklab(43.54% 0.1433 -0.0957)
OKLCHoklch(43.54% 0.172 326.3)
XYZxyz(13.1232, 7.0282, 21.7801)
Luminance0.0703 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F82 #23821F
analogous
#4D1F82 #7E1F82 #821F55
triadic
#7E1F82 #827E1F #1F827E
tetradic
#7E1F82 #824D1F #23821F #1F5582
square
#7E1F82 #824D1F #23821F #1F5582
split-complementary
#7E1F82 #55821F #1F824D
monochromatic
#1E071F #4E1351 #7E1F82 #AE2BB3 #CE48D3

Accessibility & contrast

On white

8.73
#7E1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F82
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F82#FFFFFF#000000##FFFFFF
##7E1F821.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024385
Deuteranopia (green-blind)
#364F80
Tritanopia (blue-blind)
#81304F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f82;
/* rgb */ color: rgb(126, 31, 130);
/* oklch */ color: oklch(43.5% 0.172 326.3);
Tailwind
colors: {
  custom: {
    50: '#a766a7',
    500: '#7e1f82',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f82;
$custom-light: #a766a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f82",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 297.576,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.43539,
    "c": 0.17231,
    "h": 326.3
  },
  "luminance": 0.07027
}

Semantic roles & 50–950 ramp

primary
#7E1F82
secondary
#4CB548
accent
#E5434A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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