#7E1972#7E1972

#7E1972 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.166 H 333.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7E1972
RGBrgb(126, 25, 114)
HSLhsl(307, 67%, 30%)
HSVhsv(307, 80%, 49%)
CMYKcmyk(0%, 80.2%, 9.5%, 50.6%)
CIE-LABlab(30.27, 51.31, -26.87)
CIE-LCHlch(30.27, 57.92, 332.36°)
OKLaboklab(42.1% 0.1487 -0.0737)
OKLCHoklch(42.1% 0.166 333.6)
XYZxyz(11.9892, 6.3468, 16.5100)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1972 #197E25
analogous
#58197E #7E1972 #7E193F
triadic
#7E1972 #727E19 #19727E
tetradic
#7E1972 #7E5819 #197E25 #193F7E
square
#7E1972 #7E5819 #197E25 #193F7E
split-complementary
#7E1972 #3F7E19 #197E58
monochromatic
#1A0517 #4B0F44 #7E1972 #B123A0 #D83AC5

Accessibility & contrast

On white

9.25
#7E1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1972
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1972#FFFFFF#000000##FFFFFF
##7E19721.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E74
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#842445
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1972;
/* rgb */ color: rgb(126, 25, 114);
/* oklch */ color: oklch(42.1% 0.166 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7639b',
    500: '#7e1972',
    950: '#000000',
  },
}
SCSS
$custom: #7e1972;
$custom-light: #a7639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1972",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 307.129,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42095,
    "c": 0.16597,
    "h": 333.6
  },
  "luminance": 0.06346
}

Semantic roles & 50–950 ramp

primary
#7E1972
secondary
#41B24E
accent
#EA523E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1972

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

Preview Lab → · Contrast checker → · Palette generator →

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