#7E1B76#7E1B76

#7E1B76 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.167 H 331.7°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7E1B76
RGBrgb(126, 27, 118)
HSLhsl(305, 65%, 30%)
HSVhsv(305, 79%, 49%)
CMYKcmyk(0%, 78.6%, 6.3%, 50.6%)
CIE-LABlab(30.71, 51.34, -28.72)
CIE-LCHlch(30.71, 58.83, 330.78°)
OKLaboklab(42.48% 0.147 -0.0791)
OKLCHoklch(42.48% 0.167 331.7)
XYZxyz(12.2662, 6.5285, 17.7501)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B76 #1B7E23
analogous
#541B7E #7E1B76 #7E1B45
triadic
#7E1B76 #767E1B #1B767E
tetradic
#7E1B76 #7E541B #1B7E23 #1B457E
square
#7E1B76 #7E541B #1B7E23 #1B457E
split-complementary
#7E1B76 #457E1B #1B7E54
monochromatic
#190518 #4C1047 #7E1B76 #B026A5 #D63EC9

Accessibility & contrast

On white

9.11
#7E1B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E1B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B76
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B76#FFFFFF#000000##FFFFFF
##7E1B761.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123F78
Deuteranopia (green-blind)
#3C4D74
Tritanopia (blue-blind)
#832747
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1b76;
/* rgb */ color: rgb(126, 27, 118);
/* oklch */ color: oklch(42.5% 0.167 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7649e',
    500: '#7e1b76',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b76;
$custom-light: #a7649e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b76",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 304.848,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.4248,
    "c": 0.16697,
    "h": 331.7
  },
  "luminance": 0.06527
}

Semantic roles & 50–950 ramp

primary
#7E1B76
secondary
#43B24C
accent
#E84E40
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1B76

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

Preview Lab → · Contrast checker → · Palette generator →

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