#7E1973#7E1973

#7E1973 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.167 H 333.1°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7E1973
RGBrgb(126, 25, 115)
HSLhsl(307, 67%, 30%)
HSVhsv(307, 80%, 49%)
CMYKcmyk(0%, 80.2%, 8.7%, 50.6%)
CIE-LABlab(30.33, 51.47, -27.42)
CIE-LCHlch(30.33, 58.32, 331.95°)
OKLaboklab(42.15% 0.1487 -0.0753)
OKLCHoklch(42.15% 0.167 333.1)
XYZxyz(12.0464, 6.3697, 16.8114)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1973 #197E24
analogous
#57197E #7E1973 #7E1940
triadic
#7E1973 #737E19 #19737E
tetradic
#7E1973 #7E5719 #197E24 #19407E
square
#7E1973 #7E5719 #197E24 #19407E
split-complementary
#7E1973 #407E19 #197E57
monochromatic
#1A0517 #4B0F44 #7E1973 #B123A2 #D83AC7

Accessibility & contrast

On white

9.24
#7E1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1973
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1973#FFFFFF#000000##FFFFFF
##7E19731.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E75
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#842445
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1973;
/* rgb */ color: rgb(126, 25, 115);
/* oklch */ color: oklch(42.2% 0.167 333.1);
Tailwind
colors: {
  custom: {
    50: '#a7639b',
    500: '#7e1973',
    950: '#000000',
  },
}
SCSS
$custom: #7e1973;
$custom-light: #a7639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1973",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 306.535,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.16672,
    "h": 333.1
  },
  "luminance": 0.06369
}

Semantic roles & 50–950 ramp

primary
#7E1973
secondary
#41B24D
accent
#EA513E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1973

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

Preview Lab → · Contrast checker → · Palette generator →

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