#7E1F80#7E1F80

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

Color values

HEX#7E1F80
RGBrgb(126, 31, 128)
HSLhsl(299, 61%, 31%)
HSVhsv(299, 76%, 50%)
CMYKcmyk(1.6%, 75.8%, 0%, 49.8%)
CIE-LABlab(31.75, 51.73, -33.37)
CIE-LCHlch(31.75, 61.56, 327.17°)
OKLaboklab(43.41% 0.1433 -0.0926)
OKLCHoklch(43.41% 0.171 327.1)
XYZxyz(12.9902, 6.9750, 21.0800)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F80 #21801F
analogous
#4D1F80 #7E1F80 #801F51
triadic
#7E1F80 #807E1F #1F807E
tetradic
#7E1F80 #804D1F #21801F #1F5180
square
#7E1F80 #804D1F #21801F #1F5180
split-complementary
#7E1F80 #51801F #1F804D
monochromatic
#1D071D #4D134F #7E1F80 #AE2BB1 #D047D2

Accessibility & contrast

On white

8.77
#7E1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F80
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F80#FFFFFF#000000##FFFFFF
##7E1F801.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064383
Deuteranopia (green-blind)
#384F7E
Tritanopia (blue-blind)
#822F4E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f80;
/* rgb */ color: rgb(126, 31, 128);
/* oklch */ color: oklch(43.4% 0.171 327.1);
Tailwind
colors: {
  custom: {
    50: '#a766a5',
    500: '#7e1f80',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f80;
$custom-light: #a766a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f80",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 298.763,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43413,
    "c": 0.17066,
    "h": 327.1
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#7E1F80
secondary
#4AB348
accent
#E44447
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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