#7E1971#7E1971

#7E1971 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.165 H 334.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7E1971
RGBrgb(126, 25, 113)
HSLhsl(308, 67%, 30%)
HSVhsv(308, 80%, 49%)
CMYKcmyk(0%, 80.2%, 10.3%, 50.6%)
CIE-LABlab(30.22, 51.16, -26.32)
CIE-LCHlch(30.22, 57.53, 332.77°)
OKLaboklab(42.04% 0.1487 -0.0722)
OKLCHoklch(42.04% 0.165 334.1)
XYZxyz(11.9326, 6.3242, 16.2118)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1971 #197E26
analogous
#59197E #7E1971 #7E193F
triadic
#7E1971 #717E19 #19717E
tetradic
#7E1971 #7E5919 #197E26 #193F7E
square
#7E1971 #7E5919 #197E26 #193F7E
split-complementary
#7E1971 #3F7E19 #197E59
monochromatic
#1A0517 #4B0F43 #7E1971 #B1239F #D83AC3

Accessibility & contrast

On white

9.27
#7E1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1971
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1971#FFFFFF#000000##FFFFFF
##7E19711.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#842344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1971;
/* rgb */ color: rgb(126, 25, 113);
/* oklch */ color: oklch(42.0% 0.165 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7639a',
    500: '#7e1971',
    950: '#000000',
  },
}
SCSS
$custom: #7e1971;
$custom-light: #a7639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1971",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 307.723,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.16523,
    "h": 334.1
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#7E1971
secondary
#41B24F
accent
#EA543E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1971

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

Preview Lab → · Contrast checker → · Palette generator →

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