#7E1F7E#7E1F7E

#7E1F7E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.169 H 328.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7E1F7E
RGBrgb(126, 31, 126)
HSLhsl(300, 61%, 31%)
HSVhsv(300, 75%, 49%)
CMYKcmyk(0%, 75.4%, 0%, 50.6%)
CIE-LABlab(31.63, 51.38, -32.31)
CIE-LCHlch(31.63, 60.70, 327.84°)
OKLaboklab(43.29% 0.1434 -0.0895)
OKLCHoklch(43.29% 0.169 328)
XYZxyz(12.8599, 6.9229, 20.3935)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F7E #1F7E1F
analogous
#4E1F7E #7E1F7E #7E1F4E
triadic
#7E1F7E #7E7E1F #1F7E7E
tetradic
#7E1F7E #7E4E1F #1F7E1F #1F4E7E
square
#7E1F7E #7E4E1F #1F7E1F #1F4E7E
split-complementary
#7E1F7E #4E7E1F #1F7E4E
monochromatic
#1C071C #4D134D #7E1F7E #AF2BAF #D146D1

Accessibility & contrast

On white

8.81
#7E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F7E
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F7E#FFFFFF#000000##FFFFFF
##7E1F7E1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4381
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#822E4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1f7e;
/* rgb */ color: rgb(126, 31, 126);
/* oklch */ color: oklch(43.3% 0.169 328.0);
Tailwind
colors: {
  custom: {
    50: '#a766a4',
    500: '#7e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f7e;
$custom-light: #a766a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f7e",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4329,
    "c": 0.16901,
    "h": 328
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#7E1F7E
secondary
#48B148
accent
#E44444
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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