#7E1977#7E1977

#7E1977 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.170 H 331.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7E1977
RGBrgb(126, 25, 119)
HSLhsl(304, 67%, 30%)
HSVhsv(304, 80%, 49%)
CMYKcmyk(0%, 80.2%, 5.6%, 50.6%)
CIE-LABlab(30.55, 52.12, -29.60)
CIE-LCHlch(30.55, 59.94, 330.40°)
OKLaboklab(42.39% 0.1488 -0.0816)
OKLCHoklch(42.39% 0.17 331.3)
XYZxyz(12.2816, 6.4638, 18.0500)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1977 #197E20
analogous
#52197E #7E1977 #7E1945
triadic
#7E1977 #777E19 #19777E
tetradic
#7E1977 #7E5219 #197E20 #19457E
square
#7E1977 #7E5219 #197E20 #19457E
split-complementary
#7E1977 #457E19 #197E52
monochromatic
#1A0518 #4B0F47 #7E1977 #B123A7 #D83ACD

Accessibility & contrast

On white

9.16
#7E1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1977
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1977#FFFFFF#000000##FFFFFF
##7E19771.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3F79
Deuteranopia (green-blind)
#3A4D75
Tritanopia (blue-blind)
#832747
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1977;
/* rgb */ color: rgb(126, 25, 119);
/* oklch */ color: oklch(42.4% 0.170 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7639e',
    500: '#7e1977',
    950: '#000000',
  },
}
SCSS
$custom: #7e1977;
$custom-light: #a7639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1977",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 304.158,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42388,
    "c": 0.16976,
    "h": 331.3
  },
  "luminance": 0.06463
}

Semantic roles & 50–950 ramp

primary
#7E1977
secondary
#41B248
accent
#EA4A3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1977

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

Preview Lab → · Contrast checker → · Palette generator →

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