#7E1F7D#7E1F7D

#7E1F7D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.168 H 328.5°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7E1F7D
RGBrgb(126, 31, 125)
HSLhsl(301, 61%, 31%)
HSVhsv(301, 75%, 49%)
CMYKcmyk(0%, 75.4%, 0.8%, 50.6%)
CIE-LABlab(31.57, 51.21, -31.77)
CIE-LCHlch(31.57, 60.26, 328.18°)
OKLaboklab(43.23% 0.1434 -0.088)
OKLCHoklch(43.23% 0.168 328.5)
XYZxyz(12.7957, 6.8972, 20.0554)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F7D #1F7E20
analogous
#4F1F7E #7E1F7D #7E1F4D
triadic
#7E1F7D #7D7E1F #1F7D7E
tetradic
#7E1F7D #7E4F1F #1F7E20 #1F4D7E
square
#7E1F7D #7E4F1F #1F7E20 #1F4D7E
split-complementary
#7E1F7D #4D7E1F #1F7E4F
monochromatic
#1C071C #4D134C #7E1F7D #AF2BAE #D146D0

Accessibility & contrast

On white

8.83
#7E1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F7D
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F7D#FFFFFF#000000##FFFFFF
##7E1F7D1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4280
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#822D4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1f7d;
/* rgb */ color: rgb(126, 31, 125);
/* oklch */ color: oklch(43.2% 0.168 328.5);
Tailwind
colors: {
  custom: {
    50: '#a766a3',
    500: '#7e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f7d;
$custom-light: #a766a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f7d",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 300.632,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43229,
    "c": 0.16821,
    "h": 328.5
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#7E1F7D
secondary
#48B149
accent
#E44644
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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