#7E1B6F#7E1B6F

#7E1B6F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.162 H 335.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7E1B6F
RGBrgb(126, 27, 111)
HSLhsl(309, 65%, 30%)
HSVhsv(309, 79%, 49%)
CMYKcmyk(0%, 78.6%, 11.9%, 50.6%)
CIE-LABlab(30.32, 50.22, -24.87)
CIE-LCHlch(30.32, 56.05, 333.65°)
OKLaboklab(42.08% 0.1467 -0.068)
OKLCHoklch(42.08% 0.162 335.1)
XYZxyz(11.8655, 6.3683, 15.6401)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B6F #1B7E2A
analogous
#5C1B7E #7E1B6F #7E1B3D
triadic
#7E1B6F #6F7E1B #1B6F7E
tetradic
#7E1B6F #7E5C1B #1B7E2A #1B3D7E
square
#7E1B6F #7E5C1B #1B7E2A #1B3D7E
split-complementary
#7E1B6F #3D7E1B #1B7E5C
monochromatic
#190516 #4C1043 #7E1B6F #B0269B #D63EBF

Accessibility & contrast

On white

9.24
#7E1B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B6F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B6F#FFFFFF#000000##FFFFFF
##7E1B6F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3E71
Deuteranopia (green-blind)
#3F4D6D
Tritanopia (blue-blind)
#852443
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1b6f;
/* rgb */ color: rgb(126, 27, 111);
/* oklch */ color: oklch(42.1% 0.162 335.1);
Tailwind
colors: {
  custom: {
    50: '#a76398',
    500: '#7e1b6f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b6f;
$custom-light: #a76398;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b6f",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 309.091,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42079,
    "c": 0.16169,
    "h": 335.1
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#7E1B6F
secondary
#43B254
accent
#E85A40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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