#7E1976#7E1976

#7E1976 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.169 H 331.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7E1976
RGBrgb(126, 25, 118)
HSLhsl(305, 67%, 30%)
HSVhsv(305, 80%, 49%)
CMYKcmyk(0%, 80.2%, 6.3%, 50.6%)
CIE-LABlab(30.50, 51.95, -29.06)
CIE-LCHlch(30.50, 59.53, 330.78°)
OKLaboklab(42.33% 0.1488 -0.0801)
OKLCHoklch(42.33% 0.169 331.7)
XYZxyz(12.2219, 6.4399, 17.7354)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1976 #197E21
analogous
#53197E #7E1976 #7E1944
triadic
#7E1976 #767E19 #19767E
tetradic
#7E1976 #7E5319 #197E21 #19447E
square
#7E1976 #7E5319 #197E21 #19447E
split-complementary
#7E1976 #447E19 #197E53
monochromatic
#1A0518 #4B0F46 #7E1976 #B123A6 #D83ACB

Accessibility & contrast

On white

9.18
#7E1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1976
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1976#FFFFFF#000000##FFFFFF
##7E19761.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3F78
Deuteranopia (green-blind)
#3B4D74
Tritanopia (blue-blind)
#832647
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1976;
/* rgb */ color: rgb(126, 25, 118);
/* oklch */ color: oklch(42.3% 0.169 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7639e',
    500: '#7e1976',
    950: '#000000',
  },
}
SCSS
$custom: #7e1976;
$custom-light: #a7639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1976",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 304.752,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42328,
    "c": 0.16899,
    "h": 331.7
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#7E1976
secondary
#41B24A
accent
#EA4C3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1976

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

Preview Lab → · Contrast checker → · Palette generator →

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