#7E1F7F#7E1F7F

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

Color values

HEX#7E1F7F
RGBrgb(126, 31, 127)
HSLhsl(299, 61%, 31%)
HSVhsv(299, 76%, 50%)
CMYKcmyk(0.8%, 75.6%, 0%, 50.2%)
CIE-LABlab(31.69, 51.56, -32.84)
CIE-LCHlch(31.69, 61.13, 327.50°)
OKLaboklab(43.35% 0.1434 -0.0911)
OKLCHoklch(43.35% 0.17 327.6)
XYZxyz(12.9248, 6.9488, 20.7351)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F7F #207F1F
analogous
#4E1F7F #7E1F7F #7F1F50
triadic
#7E1F7F #7F7E1F #1F7F7E
tetradic
#7E1F7F #7F4E1F #207F1F #1F507F
square
#7E1F7F #7F4E1F #207F1F #1F507F
split-complementary
#7E1F7F #507F1F #1F7F4E
monochromatic
#1C071D #4D134E #7E1F7F #AF2BB0 #D046D2

Accessibility & contrast

On white

8.79
#7E1F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F7F
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F7F#FFFFFF#000000##FFFFFF
##7E1F7F1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094382
Deuteranopia (green-blind)
#384F7D
Tritanopia (blue-blind)
#822E4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1f7f;
/* rgb */ color: rgb(126, 31, 127);
/* oklch */ color: oklch(43.4% 0.170 327.6);
Tailwind
colors: {
  custom: {
    50: '#a766a4',
    500: '#7e1f7f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f7f;
$custom-light: #a766a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f7f",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 299.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43351,
    "c": 0.16983,
    "h": 327.6
  },
  "luminance": 0.06948
}

Semantic roles & 50–950 ramp

primary
#7E1F7F
secondary
#49B248
accent
#E44446
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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