#7E1F81#7E1F81

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

Color values

HEX#7E1F81
RGBrgb(126, 31, 129)
HSLhsl(298, 61%, 31%)
HSVhsv(298, 76%, 51%)
CMYKcmyk(2.3%, 76%, 0%, 49.4%)
CIE-LABlab(31.81, 51.91, -33.90)
CIE-LCHlch(31.81, 62.00, 326.85°)
OKLaboklab(43.48% 0.1433 -0.0942)
OKLCHoklch(43.48% 0.171 326.7)
XYZxyz(13.0564, 7.0015, 21.4284)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F81 #22811F
analogous
#4D1F81 #7E1F81 #811F53
triadic
#7E1F81 #817E1F #1F817E
tetradic
#7E1F81 #814D1F #22811F #1F5381
square
#7E1F81 #814D1F #22811F #1F5381
split-complementary
#7E1F81 #53811F #1F814D
monochromatic
#1E071E #4E1350 #7E1F81 #AE2BB2 #CF47D3

Accessibility & contrast

On white

8.75
#7E1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F81
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F81#FFFFFF#000000##FFFFFF
##7E1F811.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044384
Deuteranopia (green-blind)
#374F7F
Tritanopia (blue-blind)
#822F4E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f81;
/* rgb */ color: rgb(126, 31, 129);
/* oklch */ color: oklch(43.5% 0.171 326.7);
Tailwind
colors: {
  custom: {
    50: '#a766a6',
    500: '#7e1f81',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f81;
$custom-light: #a766a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f81",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 298.163,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43476,
    "c": 0.17148,
    "h": 326.7
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#7E1F81
secondary
#4BB448
accent
#E44348
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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