#7E1F76#7E1F76

#7E1F76 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.163 H 331.7°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7E1F76
RGBrgb(126, 31, 118)
HSLhsl(305, 61%, 31%)
HSVhsv(305, 75%, 49%)
CMYKcmyk(0%, 75.4%, 6.3%, 50.6%)
CIE-LABlab(31.17, 50.02, -27.99)
CIE-LCHlch(31.17, 57.32, 330.77°)
OKLaboklab(42.81% 0.1432 -0.077)
OKLCHoklch(42.81% 0.163 331.7)
XYZxyz(12.3642, 6.7246, 17.7828)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F76 #1F7E27
analogous
#561F7E #7E1F76 #7E1F46
triadic
#7E1F76 #767E1F #1F767E
tetradic
#7E1F76 #7E561F #1F7E27 #1F467E
square
#7E1F76 #7E561F #1F7E27 #1F467E
split-complementary
#7E1F76 #467E1F #1F7E56
monochromatic
#1C071A #4D1348 #7E1F76 #AF2BA4 #D146C6

Accessibility & contrast

On white

8.96
#7E1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F76
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F76#FFFFFF#000000##FFFFFF
##7E1F761.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184178
Deuteranopia (green-blind)
#3D4E74
Tritanopia (blue-blind)
#832A48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1f76;
/* rgb */ color: rgb(126, 31, 118);
/* oklch */ color: oklch(42.8% 0.163 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7659e',
    500: '#7e1f76',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f76;
$custom-light: #a7659e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f76",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 305.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42812,
    "c": 0.16261,
    "h": 331.7
  },
  "luminance": 0.06724
}

Semantic roles & 50–950 ramp

primary
#7E1F76
secondary
#48B151
accent
#E45244
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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